m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2014-03-23 06:02:42 -0300
committerJason A. Donenfeld <Jason@zx2c4.com>2014-03-23 06:02:42 -0300
commit8500984943be4fc89f870a30766a385883556283 (patch)
tree27cb580f8651a3927e41368469352c4a1f052062
parent1476be164b8eadb258301015b6fd21dcb64118c0 (diff)
Use heredoc for unset error.
Suggested-by: Tom Vincent <pass@tlvince.com>
-rwxr-xr-xsrc/password-store.sh10
1 files 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