Updated checkExist function to remove extraneous notifications

This commit is contained in:
Asif Bacchus 2018-09-19 23:35:27 -06:00
parent bc90ed3cd3
commit 99f69d5b9b
1 changed files with 0 additions and 8 deletions

View File

@ -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