mirror of
https://github.com/OpenMTC/OpenMTC.git
synced 2025-03-22 03:55:23 +00:00
adds sanity check in create-app-structure script
This commit is contained in:
parent
3c4aa53894
commit
9ad44d82fe
@ -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})"
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user