[pass] Fix display paths for ‘pass grep’

Allan Odgaard lists+pass at simplit.com
Thu Jul 17 08:43:54 CEST 2014

both -L and a trailing slash was added to $PREFIX — the latter was an 
alternative to using -L and causes ‘find’ to output results with an 
extra slash, so the line removing $PREFIX from the ‘find’ output 
would have to also include this extra slash.

Best to just remove it again though.

--- pass (saved version)
+++ (current document)
@@ -360,7 +360,7 @@
  		printf "\e[94m%s/\e[1m%s\e[0m:\n" "$passfile_dir" "$passfile"
  		echo "$grepresults"
-	done < <(find -L "$PREFIX/" -iname '*.gpg' -print0)
+	done < <(find -L "$PREFIX" -iname '*.gpg' -print0)

  cmd_insert() {

More information about the Password-Store mailing list