Updated checkExist function to remove extraneous notifications
This commit is contained in:
parent
bc90ed3cd3
commit
99f69d5b9b
@ -54,26 +54,18 @@ function checkExist {
|
|||||||
# find file
|
# find file
|
||||||
if [ -e "$2" ]; then
|
if [ -e "$2" ]; then
|
||||||
# found
|
# found
|
||||||
echo -e "${normal}${stamp} File found:" \
|
|
||||||
"${ltYellow}${2}${normal}" >> "$logFileVerbose"
|
|
||||||
return 0
|
return 0
|
||||||
else
|
else
|
||||||
# not found
|
# not found
|
||||||
echo -e "${red}${stamp} File NOT found:"\
|
|
||||||
"${ltYellow}${2}${normal}" >> "$logFileVerbose"
|
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
elif [ "$1" = "fd" ]; then
|
elif [ "$1" = "fd" ]; then
|
||||||
# find directory
|
# find directory
|
||||||
if [ -d "$2" ]; then
|
if [ -d "$2" ]; then
|
||||||
# found
|
# found
|
||||||
echo -e "${normal}${stamp} Dir found:" \
|
|
||||||
"${ltYellow}${2}${normal}" >> "$logFileVerbose"
|
|
||||||
return 0
|
return 0
|
||||||
else
|
else
|
||||||
# not found
|
# not found
|
||||||
echo -e "${red}${stamp} Dir NOT found:" \
|
|
||||||
"{ltYellow}${2}${normal}" >> "$logFileVerbose"
|
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user