From 8500984943be4fc89f870a30766a385883556283 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Sun, 23 Mar 2014 06:02:42 -0300 Subject: Use heredoc for unset error. Suggested-by: Tom Vincent --- src/password-store.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/password-store.sh b/src/password-store.sh index e9a3c39..c576844 100755 --- a/src/password-store.sh +++ b/src/password-store.sh @@ -102,10 +102,12 @@ set_gpg_recipients() { current="$current/.gpg-id" if [[ ! -f $current ]]; then - echo "You must run:" - echo " $program init your-gpg-id" - echo "before you may use the password store." - echo + cat <<-_EOF + ERROR: You must run: + $program init your-gpg-id + before you may use the password store. + + _EOF usage exit 1 fi -- cgit v1.2.3