checkExist: Updated warning and error text for consistency.
This commit is contained in:
parent
a4a4e2fd08
commit
d6746a2548
@ -168,13 +168,13 @@ function checkExist {
|
|||||||
$logFileNormal > /dev/null
|
$logFileNormal > /dev/null
|
||||||
return 1
|
return 1
|
||||||
elif [ "$2" = "warn" ]; then
|
elif [ "$2" = "warn" ]; then
|
||||||
echo -e "\e[1;33m[`date +%Y-%m-%d` `date +%H:%M:%S`] ---WARNING:" \
|
echo -e "\e[1;33m[`date +%Y-%m-%d` `date +%H:%M:%S`] --WARNING:" \
|
||||||
"${3} was not found---\e[0m" >> $logFile
|
"${3} was not found--\e[0m" >> $logFile
|
||||||
exitWarning=101
|
exitWarning=101
|
||||||
return 2
|
return 2
|
||||||
elif [ "$2" = "error" ]; then
|
elif [ "$2" = "error" ]; then
|
||||||
echo -e "\e[1;31m[`date +%Y-%m-%d` `date +%H:%M:%S`] ---ERROR:" \
|
echo -e "\e[1;31m[`date +%Y-%m-%d` `date +%H:%M:%S`] --ERROR:" \
|
||||||
"${3} was not found---\e[0m" >> $logFile
|
"${3} was not found--\e[0m" >> $logFile
|
||||||
quit 101
|
quit 101
|
||||||
fi
|
fi
|
||||||
elif [ "$1" = "verify" ]; then
|
elif [ "$1" = "verify" ]; then
|
||||||
@ -183,8 +183,8 @@ function checkExist {
|
|||||||
"\e[0;33m${2}\e[0m" >> $logFileVerbose
|
"\e[0;33m${2}\e[0m" >> $logFileVerbose
|
||||||
return 0
|
return 0
|
||||||
else
|
else
|
||||||
echo -e "\e[1;31m[`date +%Y-%m-%d` `date +%H:%M:%S`] ---ERROR:" \
|
echo -e "\e[1;31m[`date +%Y-%m-%d` `date +%H:%M:%S`] --ERROR:" \
|
||||||
"Problem creating ${2}---\e[0m" >> $logFile
|
"Problem creating ${2}--\e[0m" >> $logFile
|
||||||
quit 102
|
quit 102
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user