summaryrefslogtreecommitdiff
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)
downloadpass-8500984943be4fc89f870a30766a385883556283.tar.gz
pass-8500984943be4fc89f870a30766a385883556283.tar.bz2
pass-8500984943be4fc89f870a30766a385883556283.zip
Use heredoc for unset error.
Suggested-by: Tom Vincent <pass@tlvince.com>
Diffstat (limited to '')
-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