summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2015-02-11 17:32:26 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2015-02-11 17:32:26 +0100
commit1ba31d7ed03f0cab4f7b9104041eeb15dd1bf013 (patch)
treece326f5219a9d4115a9c01a914f1066fa1eeb48c /src
parent4c78ffec1672f0abb129ae00d15d951346005725 (diff)
downloadpass-1ba31d7ed03f0cab4f7b9104041eeb15dd1bf013.tar.gz
pass-1ba31d7ed03f0cab4f7b9104041eeb15dd1bf013.tar.bz2
pass-1ba31d7ed03f0cab4f7b9104041eeb15dd1bf013.zip
Suppress output when original file does not exist
Diffstat (limited to '')
-rwxr-xr-xsrc/password-store.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/password-store.sh b/src/password-store.sh
index 6313384..47f7ffa 100755
--- a/src/password-store.sh
+++ b/src/password-store.sh
@@ -421,7 +421,7 @@ cmd_edit() {
fi
${EDITOR:-vi} "$tmp_file"
[[ -f $tmp_file ]] || die "New password not saved."
- $GPG -d -o - "${GPG_OPTS[@]}" "$passfile" | diff - "$tmp_file" &>/dev/null && die "Password unchanged."
+ $GPG -d -o - "${GPG_OPTS[@]}" "$passfile" 2>/dev/null | diff - "$tmp_file" &>/dev/null && die "Password unchanged."
while ! $GPG -e "${GPG_RECIPIENT_ARGS[@]}" -o "$passfile" "${GPG_OPTS[@]}" "$tmp_file"; do
yesno "GPG encryption failed. Would you like to try again?"
done