I believe you can get rid of the tmp_file by using a subshell. (untested)

+         find "$PREFIX" -follow -type d -iname "*${@}*" 2>/dev/null | while 
read f
+         (
+         do
+           find "$f" -follow -type f -iname '*.gpg' 2>/dev/null
+         done
+         find "$PREFIX" -follow -type f -iname "*${@}*.gpg" 2>/dev/null
+         ) |
+         sort -u | sed 's/.gpg//g' | cut -c $c- && rm -f "$tmp_file"
+       fi
}
_______________________________________________
Password-Store mailing list
[email protected]
https://lists.zx2c4.com/mailman/listinfo/password-store

Reply via email to