Guard against length errors in app names

Closes coop-cloud/abra#83.
This commit is contained in:
Luke Murphy
2021-03-04 16:25:21 +01:00
parent d6195ad6d7
commit eec49d6dd1
2 changed files with 5 additions and 0 deletions

4
abra
View File

@ -759,6 +759,10 @@ sub_app_new (){
fi
fi
if [ ${#APP_NAME} -gt 45 ]; then
error "$APP_NAME cannot be longer than 45 characters in length"
fi
ENV_FILE="$SERVER/$APP_NAME.env"
if [ -f "$ENV_FILE" ]; then