From ee0d3f1a7884877a50ddc3d334777475cc2e3ea9 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Wed, 16 Apr 2014 13:26:08 +0200 Subject: find: use heredoc for error message --- src/password-store.sh | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'src/password-store.sh') 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="$@" -- cgit v1.2.3