checkExist: Updated warning and error text for consistency.

This commit is contained in:
Asif Bacchus 2018-09-06 02:59:22 -06:00
parent a4a4e2fd08
commit d6746a2548

View File

@ -168,13 +168,13 @@ function checkExist {
$logFileNormal > /dev/null
return 1
elif [ "$2" = "warn" ]; then
echo -e "\e[1;33m[`date +%Y-%m-%d` `date +%H:%M:%S`] ---WARNING:" \
"${3} was not found---\e[0m" >> $logFile
echo -e "\e[1;33m[`date +%Y-%m-%d` `date +%H:%M:%S`] --WARNING:" \
"${3} was not found--\e[0m" >> $logFile
exitWarning=101
return 2
elif [ "$2" = "error" ]; then
echo -e "\e[1;31m[`date +%Y-%m-%d` `date +%H:%M:%S`] ---ERROR:" \
"${3} was not found---\e[0m" >> $logFile
echo -e "\e[1;31m[`date +%Y-%m-%d` `date +%H:%M:%S`] --ERROR:" \
"${3} was not found--\e[0m" >> $logFile
quit 101
fi
elif [ "$1" = "verify" ]; then
@ -183,8 +183,8 @@ function checkExist {
"\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
echo -e "\e[1;31m[`date +%Y-%m-%d` `date +%H:%M:%S`] --ERROR:" \
"Problem creating ${2}--\e[0m" >> $logFile
quit 102
fi
fi