commit 087f4093e97e8aeae149f6d79b27853386032c98
parent 579db9ca9c5a3d8ee60fc15d2be609775827d436
Author: Jason A. Donenfeld <Jason@zx2c4.com>
Date: Wed, 19 Sep 2012 04:48:19 +0200
Since we're using batch mode, we can read directly.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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