diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2015-02-11 17:32:26 +0100 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2015-02-11 17:32:26 +0100 |
commit | 1ba31d7ed03f0cab4f7b9104041eeb15dd1bf013 (patch) | |
tree | ce326f5219a9d4115a9c01a914f1066fa1eeb48c /src | |
parent | 4c78ffec1672f0abb129ae00d15d951346005725 (diff) | |
download | pass-1ba31d7ed03f0cab4f7b9104041eeb15dd1bf013.tar.gz pass-1ba31d7ed03f0cab4f7b9104041eeb15dd1bf013.tar.bz2 pass-1ba31d7ed03f0cab4f7b9104041eeb15dd1bf013.zip |
Suppress output when original file does not exist
Diffstat (limited to 'src')
-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 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 |