mirror of
https://github.com/OpenMTC/OpenMTC.git
synced 2025-06-21 15:31:19 +00:00
adds sanity check in create-app-structure script
This commit is contained in:
@ -95,6 +95,12 @@ if [ -e "${APP_FOLDER}" ]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
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
|
# change to root folder
|
||||||
cd "$(dirname ${0})"
|
cd "$(dirname ${0})"
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user