From 9754402450eb4608ae258a1d8adaae66e9780429 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Sat, 30 Nov 2019 12:01:34 +0000 Subject: [PATCH] pash: Fix incorrect success message handling --- pash | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pash b/pash index 76dfa9a..b4416b8 100755 --- a/pash +++ b/pash @@ -45,11 +45,10 @@ pw_add() { # Heredocs are sometimes implemented via temporary files, # however this is typically done using 'mkstemp()' which # is more secure than '/proc'. - "$gpg" "$@" -o "$name.gpg" <<-EOF + "$gpg" "$@" -o "$name.gpg" <<-EOF && \ + printf '%s\n' "Saved '$name' to the store." $pass EOF - - [ $# = 0 ] && printf '%s\n' "Saved '$name' to the store." } pw_del() {