summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xsrc/password-store.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/password-store.sh b/src/password-store.sh
index c8a0a9f..6771ab2 100755
--- a/src/password-store.sh
+++ b/src/password-store.sh
@@ -212,8 +212,8 @@ case "$command" in
fi
done
else
- echo -n "Enter password for $path: "
- head -n 1 | gpg -q -e -r "$ID" -o "$passfile" --yes
+ read -p "Enter password for $path: " -e password
+ gpg -q -e -r "$ID" -o "$passfile" --yes <<<"$password"
fi
if [[ -d $GIT ]]; then
git add "$passfile"