antonlindstrom / passpwn

See if your passwords in pass has been breached.
132 stars 12 forks source link

Quote ./*.gpg argument for git-ls-files #9

Closed cfra closed 5 years ago

cfra commented 5 years ago

Without those quotes, the argument will be evaluated by bash instead of git-ls-files, leading to incorrect results:

$ cd passpwn-test/
[passpwn-test]$ touch bla.gpg
[passpwn-test]$ bash -x /usr/local/bin/passpwn
+ set -eou pipefail
+ main
+ IFS='
'
++ pass git ls-files ./bla.gpg
antonlindstrom commented 5 years ago

Looks good! Thank you so much for this!