From b08c0332ea3acc10cc3b254b52190de92ce63787 Mon Sep 17 00:00:00 2001 From: kevinnls <57634663+kevinnls@users.noreply.github.com> Date: Sun, 14 Mar 2021 10:14:04 +0530 Subject: [PATCH] improved prompt for missing deps - newline for each dep --- bak-old.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/bak-old.sh b/bak-old.sh index f35e4ca..2f93e5f 100755 --- a/bak-old.sh +++ b/bak-old.sh @@ -15,6 +15,7 @@ set -e ##################### debug(){ ### function to call when $DEBUG is set + set -xv } @@ -83,8 +84,8 @@ print_err(){ print_err_deps(){ tput setaf 1 cat <<- EOF - ${0##*/} has the following unmet dependencies: - ${1/:/\\n} + ${0##*/} has the following unmet dependencies:${1/:/ + - } EOF tput sgr0 exit 1 @@ -187,7 +188,7 @@ for dep in $deps; do if command -v "$dep"; then continue else - missing="${dep}:" + missing=":${dep}" fi done