From 99f69d5b9b6cc25ec607bc11e9cf29aaf95483f8 Mon Sep 17 00:00:00 2001 From: Asif Bacchus Date: Wed, 19 Sep 2018 23:35:27 -0600 Subject: [PATCH] Updated checkExist function to remove extraneous notifications --- backup.sh | 8 -------- 1 file changed, 8 deletions(-) diff --git a/backup.sh b/backup.sh index a5aa94c..3027202 100755 --- a/backup.sh +++ b/backup.sh @@ -54,26 +54,18 @@ function checkExist { # find file if [ -e "$2" ]; then # found - echo -e "${normal}${stamp} File found:" \ - "${ltYellow}${2}${normal}" >> "$logFileVerbose" return 0 else # not found - echo -e "${red}${stamp} File NOT found:"\ - "${ltYellow}${2}${normal}" >> "$logFileVerbose" return 1 fi elif [ "$1" = "fd" ]; then # find directory if [ -d "$2" ]; then # found - echo -e "${normal}${stamp} Dir found:" \ - "${ltYellow}${2}${normal}" >> "$logFileVerbose" return 0 else # not found - echo -e "${red}${stamp} Dir NOT found:" \ - "{ltYellow}${2}${normal}" >> "$logFileVerbose" return 1 fi fi