From 0fbd3c5be7628b6d8049bafc0ce89878f381b8fd Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Sat, 30 Nov 2019 23:10:16 +0000 Subject: [PATCH] pash: better heredoc syntax. Closes #13 --- pash | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pash b/pash index a55c512..a0afe18 100755 --- a/pash +++ b/pash @@ -47,10 +47,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 && \ - printf '%s\n' "Saved '$name' to the store." + "$gpg" "$@" -o "$name.gpg" <<-EOF && $pass EOF + printf '%s\n' "Saved '$name' to the store." } pw_del() {