checkExist: removed 'verify' command, redundant to 'find'
This commit is contained in:
parent
14490061c3
commit
626c6736b1
@ -225,18 +225,6 @@ function checkExist {
|
|||||||
# file not found, return proper code
|
# file not found, return proper code
|
||||||
return 5
|
return 5
|
||||||
fi
|
fi
|
||||||
elif [ "$1" = "verify" ]; then
|
|
||||||
if [ -e "$2" ]; then
|
|
||||||
echo -e "\e[0m[`date +%Y-%m-%d` `date +%H:%M:%S`] Confirmed:" \
|
|
||||||
"\e[0;33m${2}\e[0m" >> $logFileVerbose
|
|
||||||
return 0
|
|
||||||
else
|
|
||||||
echo -e "\e[1;31m[`date +%Y-%m-%d` `date +%H:%M:%S`] --ERROR:" \
|
|
||||||
"Problem creating ${2}--\e[0m" >> $logFile
|
|
||||||
cleanUp 503
|
|
||||||
cleanUp sqlDump
|
|
||||||
quit 102
|
|
||||||
fi
|
|
||||||
else
|
else
|
||||||
# this code shouldn't be executed, provide checkable return code
|
# this code shouldn't be executed, provide checkable return code
|
||||||
return 200
|
return 200
|
||||||
|
Loading…
Reference in New Issue
Block a user