Fix remote name when using --remote option with apps:create

This commit is contained in:
Pedro Valentim
2017-03-20 13:11:14 +00:00
parent 6e4f023a7b
commit 85e5bd7c86

View File

@@ -56,7 +56,7 @@ fn-dokku-host() {
if [[ -z "$DOKKU_HOST" ]]; then if [[ -z "$DOKKU_HOST" ]]; then
fn-client-help-msg fn-client-help-msg
fi fi
echo "$DOKKU_HOST" echo "$DOKKU_HOST"
} }
@@ -125,7 +125,7 @@ main() {
else else
APP="$APP_ARG" APP="$APP_ARG"
fi fi
if git remote add dokku "dokku@$DOKKU_REMOTE_HOST:$APP"; then if git remote add $DOKKU_GIT_REMOTE "dokku@$DOKKU_REMOTE_HOST:$APP"; then
echo "-----> Dokku remote added at ${DOKKU_REMOTE_HOST} called ${DOKKU_GIT_REMOTE}" echo "-----> Dokku remote added at ${DOKKU_REMOTE_HOST} called ${DOKKU_GIT_REMOTE}"
echo "-----> Application name is ${APP}" echo "-----> Application name is ${APP}"
else else