Skip to content
Browse files

Allow sub names that contain a dash

Replace dash with underscore to allow sub names that include a dash
e.g. "sub-admin".
  • Loading branch information...
1 parent 3b1bbfc commit 49cd7c9feb9733603fe439c5a0192a3fa295c5b4 @z0mbix committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 prepare.sh
View
2 prepare.sh
@@ -8,7 +8,7 @@ if [ -z "$NAME" ]; then
fi
SUBNAME=$(echo $NAME | tr '[A-Z]' '[a-z]')
-ENVNAME="$(echo $NAME | tr '[a-z]' '[A-Z]')_ROOT"
+ENVNAME="$(echo $NAME | tr '[a-z-]' '[A-Z_]')_ROOT"
echo "Preparing your '$SUBNAME' sub!"

0 comments on commit 49cd7c9

Please sign in to comment.
Something went wrong with that request. Please try again.