diff --git a/dokku b/dokku index d1b889f96..1782e873e 100755 --- a/dokku +++ b/dokku @@ -60,7 +60,9 @@ if [[ -n "$SSH_ORIGINAL_COMMAND" ]]; then xargs $0 <<<$SSH_ORIGINAL_COMMAND exit $? else + set -f $0 $SSH_ORIGINAL_COMMAND + set +f exit $? fi fi diff --git a/plugins/domains/commands b/plugins/domains/commands index 0208368a9..47fabe924 100755 --- a/plugins/domains/commands +++ b/plugins/domains/commands @@ -65,7 +65,7 @@ case "$1" in exit 1 fi - if [[ $(egrep ^"$3"$ "$DOKKU_ROOT/$APP/VHOST" > /dev/null 2>&1; echo $?) -eq 0 ]]; then + if [[ $(grep --fixed-strings "$3" "$DOKKU_ROOT/$APP/VHOST" > /dev/null 2>&1; echo $?) -eq 0 ]]; then echo "$3 is already defined for $APP" exit 1 fi