[pass] [PATCH 2/2] User heredoc in gpg-id unset

Tom Vincent pass at tlvince.com
Thu Oct 31 17:06:12 CET 2013


---
 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 2740d8e..c73dac6 100755
--- a/src/password-store.sh
+++ b/src/password-store.sh
@@ -179,10 +179,12 @@ esac
 if [[ -n $PASSWORD_STORE_KEY ]]; then
 	ID="$PASSWORD_STORE_KEY"
 elif [[ ! -f $ID ]]; then
-	echo "You must run:"
-	echo "    $program init your-gpg-id"
-	echo "before you may use the password store."
-	echo
+	cat << _EOF
+You must run:
+    $program init your-gpg-id
+before you may use the password store.
+
+_EOF
 	usage
 	exit 1
 else
-- 
1.8.4.1



More information about the Password-Store mailing list