make prints in red if error

This commit is contained in:
mrfry 2023-04-10 11:21:52 +02:00
parent 9e21ac0a78
commit e17bbe6402

View file

@ -3,7 +3,7 @@ scriptPath=$(dirname -- "${0}")
domainPath="${scriptPath}/../../data/domain" domainPath="${scriptPath}/../../data/domain"
if [ ! -f "${domainPath}" ]; then if [ ! -f "${domainPath}" ]; then
echo "${domainPath} does not exist!" echo -e "\033[0;41m${domainPath} does not exist!\033[0m"
exit 1 exit 1
fi fi
domain=$(cat "${domainPath}") domain=$(cat "${domainPath}")