check-config.sh abort if .env file is not present

This commit is contained in:
cytopia 2020-11-12 17:09:06 +01:00
parent 8a290af71c
commit bbf297a356

View File

@ -106,12 +106,14 @@ if [ -f .env ]; then
else
log_err ".env file does not exist"
RET_CODE=$(( RET_CODE + 1))
exit 1
fi
if [ -r .env ]; then
log_ok ".env file is readable"
else
log_err ".env file is not readable"
RET_CODE=$(( RET_CODE + 1))
exit 1
fi
# Ensure all variables exist in .env file