adds sanity check in create-app-structure script

This commit is contained in:
Ronald Steinke 2018-02-13 09:34:54 +01:00
parent 3c4aa53894
commit 9ad44d82fe

View File

@ -95,6 +95,12 @@ if [ -e "${APP_FOLDER}" ]; then
exit 1
fi
# check if APP_NAME and APP_SCRIPT are the same. Testing lowercase for case-insensitive filesystems
if [ "${APP_NAME,,}" == "${APP_SCRIPT,,}" ]; then
echo "APP_NAME and APP_SCRIPT shouldn't be the same, specially in case-insensitive systems. Aborting\n"
exit 1
fi
# change to root folder
cd "$(dirname ${0})"