diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2012-09-19 04:48:19 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2012-09-19 04:48:19 +0200 |
commit | 087f4093e97e8aeae149f6d79b27853386032c98 (patch) | |
tree | c8728c6b6ef782b2f094bb3a90347863a4ff442d | |
parent | 579db9ca9c5a3d8ee60fc15d2be609775827d436 (diff) |
Since we're using batch mode, we can read directly.
-rwxr-xr-x | src/password-store.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/password-store.sh b/src/password-store.sh index 1960636..b09c084 100755 --- a/src/password-store.sh +++ b/src/password-store.sh @@ -231,7 +231,7 @@ case "$command" in if [[ $multiline -eq 1 ]]; then echo "Enter contents of $path and press Ctrl+D when finished:" echo - cat | $GPG -e -r "$ID" -o "$passfile" $GPG_OPTS + $GPG -e -r "$ID" -o "$passfile" $GPG_OPTS elif [[ $noecho -eq 1 ]]; then while true; do read -p "Enter password for $path: " -s password |