pash: Fix incorrect success message handling

This commit is contained in:
Dylan Araps 2019-11-30 12:01:34 +00:00
parent c56ba9d2a4
commit 9754402450
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E
1 changed files with 2 additions and 3 deletions

5
pash
View File

@ -45,11 +45,10 @@ pw_add() {
# Heredocs are sometimes implemented via temporary files, # Heredocs are sometimes implemented via temporary files,
# however this is typically done using 'mkstemp()' which # however this is typically done using 'mkstemp()' which
# is more secure than '/proc'. # is more secure than '/proc'.
"$gpg" "$@" -o "$name.gpg" <<-EOF "$gpg" "$@" -o "$name.gpg" <<-EOF && \
printf '%s\n' "Saved '$name' to the store."
$pass $pass
EOF EOF
[ $# = 0 ] && printf '%s\n' "Saved '$name' to the store."
} }
pw_del() { pw_del() {