From e7e752f1e8c4e761079f45501541357c6ca690e2 Mon Sep 17 00:00:00 2001 From: Roan Horning Date: Fri, 3 Mar 2023 21:47:29 -0500 Subject: [PATCH] Improve function messages --- utils/lib_utils.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/utils/lib_utils.sh b/utils/lib_utils.sh index 6e3cb87..a1e52cd 100644 --- a/utils/lib_utils.sh +++ b/utils/lib_utils.sh @@ -58,7 +58,7 @@ function make_working_dir { exit 1 fi echo $WORK_DIR - } +} #--- FUNCTION ---------------------------------------------------------------- # NAME: clean_working_dir @@ -72,7 +72,8 @@ function clean_working_dir { rm -rf $1 echo "Deleted temp working directory $1" else - echo "Not a temporary directory: $1" + echo "Did not delete directory: $1" + echo "Not a temporary directory." fi } @@ -100,15 +101,17 @@ function download_hpr_sql { echo "Removing temporary hpr.sql" rm $1/hpr.sql else - echo "No temporary hpr.sql found" + echo "No temporary hpr.sql to remove" fi if [ "$CURL" != "" ]; then curl $HPR_URL --output $1/hpr.sql + echo "Downloaded hpr.sql via curl" elif [ "$WGET" != "" ]; then wget --directory-prefix=$1 $HPR_URL + echo "Downloaded hpr.sql via wget" else echo "Could not download file. Please install either curl or wget." return 1