diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2014-04-16 13:26:08 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2014-04-16 13:26:08 +0200 |
commit | ee0d3f1a7884877a50ddc3d334777475cc2e3ea9 (patch) | |
tree | 08b7fc65e787be8c061c58b166eea96a2490d3b5 /src/password-store.sh | |
parent | f1f63fa1220afc75a5599a0c752600bd65656df2 (diff) | |
download | pass-ee0d3f1a7884877a50ddc3d334777475cc2e3ea9.tar.gz pass-ee0d3f1a7884877a50ddc3d334777475cc2e3ea9.tar.bz2 pass-ee0d3f1a7884877a50ddc3d334777475cc2e3ea9.zip |
find: use heredoc for error message
Diffstat (limited to '')
-rwxr-xr-x | src/password-store.sh | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/src/password-store.sh b/src/password-store.sh index 4c0a83e..8a56afc 100755 --- a/src/password-store.sh +++ b/src/password-store.sh @@ -291,14 +291,15 @@ cmd_find() { exit 1 fi if ! tree --version | grep -q "Jason A. Donenfeld"; then - echo "ERROR: $PROGRAM: incompatible tree command" - echo - echo "Your version of the tree command is missing the relevent patch to add the" - echo "--matchdirs and --caseinsensitive switches. Please ask your distribution" - echo "to patch your version of" - echo "tree with:" - echo " http://git.zx2c4.com/password-store/plain/contrib/tree-1.6.0-matchdirs.patch" - echo "Sorry for the inconvenience." + cat <<-_EOF + ERROR: $PROGRAM: incompatible tree command + + Your version of the tree command is missing the relevent patch to add the + --matchdirs and --caseinsensitive switches. Please ask your distribution + to patch your version of tree with: + http://git.zx2c4.com/password-store/plain/contrib/tree-1.6.0-matchdirs.patch + Sorry for the inconvenience. + _EOF exit 1 fi local terms="$@" |