Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Allow sub names containing dashes #17

Merged
merged 1 commit into from

2 participants

David Wooldridge Nick Quaranto
David Wooldridge

Replace dash with underscore to allow sub names that include a dash
e.g. "sub-admin".

David Wooldridge z0mbix Allow sub names that contain a dash
Replace dash with underscore to allow sub names that include a dash
e.g. "sub-admin".
49cd7c9
Nick Quaranto qrush merged commit 7b0c5b8 into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Oct 23, 2012
  1. David Wooldridge

    Allow sub names that contain a dash

    z0mbix authored
    Replace dash with underscore to allow sub names that include a dash
    e.g. "sub-admin".
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  prepare.sh
2  prepare.sh
View
@@ -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!"
Something went wrong with that request. Please try again.