Not able to get my head around the below function. Please somebody explain in simple way?
Stat() {
if [ "$1" = "SKIP" ]; then
echo -e " > $2 - \e[35mSKIPPING\e[0m"
elif [ $1 -eq 0 ]; then
echo -e " > $2 - \e[32mSUCCESS\e[0m"
else
echo -e " > $2 - \e[33mFAILURE\e[0m"
echo Refer $LOG file for errors
exit 1
fi
}