From bc0f0f838e3776b6a26b45357c714d9dbdae7e31 Mon Sep 17 00:00:00 2001 From: Marco Ippolito Date: Sun, 18 Jan 2015 20:42:15 +0100 Subject: [PATCH] More elegant output using here-document syntax POSIX section 2.7.4 defines here-documents. --- hacking/env-setup | 30 +++++++++++++----------------- 1 file changed, 13 insertions(+), 17 deletions(-) diff --git a/hacking/env-setup b/hacking/env-setup index c85c4b42a24..beeeb468017 100644 --- a/hacking/env-setup +++ b/hacking/env-setup @@ -59,22 +59,18 @@ else fi cd "$current_dir" -# -# Print out values unless -q is set -# - if [ "$verbosity" != silent ] ; then - echo "" - echo "Setting up Ansible to run out of checkout..." - echo "" - echo "PATH=$PATH" - echo "PYTHONPATH=$PYTHONPATH" - echo "MANPATH=$MANPATH" - echo "" - - echo "Remember, you may wish to specify your host file with -i" - echo "" - echo "Done!" - echo "" + cat <<- EOF + + Setting up Ansible to run out of checkout... + + PATH=$PATH + PYTHONPATH=$PYTHONPATH + MANPATH=$MANPATH + + Remember, you may wish to specify your host file with -i + + Done! + + EOF fi -