From 9ad44d82fec44b463292f1d44b0066d2a1cdec41 Mon Sep 17 00:00:00 2001 From: Ronald Steinke Date: Tue, 13 Feb 2018 09:34:54 +0100 Subject: [PATCH] adds sanity check in create-app-structure script --- create-app-structure | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/create-app-structure b/create-app-structure index f2500e7..afeb834 100755 --- a/create-app-structure +++ b/create-app-structure @@ -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})"