From ad9d331257e5267ff9c9fe40ee488cf0d706118e Mon Sep 17 00:00:00 2001 From: Alan Justino Date: Tue, 8 Sep 2015 11:24:03 -0300 Subject: [PATCH 1/2] Fix: appname was not correctly detected --- contrib/dokku_client.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/dokku_client.sh b/contrib/dokku_client.sh index ff42cae41..d83a289b6 100755 --- a/contrib/dokku_client.sh +++ b/contrib/dokku_client.sh @@ -46,7 +46,7 @@ if [[ ! -z $DOKKU_HOST ]]; then appname="" if [[ -d .git ]] || git rev-parse --git-dir > /dev/null 2>&1; then set +e - appname=$(git remote -v 2>/dev/null | grep -Ei "dokku@$DOKKU_HOST" | head -n 1 | cut -f1 -d' ' | cut -f2 -d':' 2>/dev/null) + appname=$(git remote -v 2>/dev/null | grep -Ei "dokku@$DOKKU_HOST" | head -n 1 | cut -f1 -d' ' | cut -f3 -d':' 2>/dev/null) set -e else echo "This is not a git repository" From b4b4e266b204d90eca991121a405a4bdcbe36c83 Mon Sep 17 00:00:00 2001 From: Alan Justino Date: Thu, 10 Sep 2015 00:18:34 -0300 Subject: [PATCH 2/2] Hoping Travis to like it this time... --- contrib/dokku_client.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/dokku_client.sh b/contrib/dokku_client.sh index d83a289b6..7fd0b71e1 100755 --- a/contrib/dokku_client.sh +++ b/contrib/dokku_client.sh @@ -46,7 +46,7 @@ if [[ ! -z $DOKKU_HOST ]]; then appname="" if [[ -d .git ]] || git rev-parse --git-dir > /dev/null 2>&1; then set +e - appname=$(git remote -v 2>/dev/null | grep -Ei "dokku@$DOKKU_HOST" | head -n 1 | cut -f1 -d' ' | cut -f3 -d':' 2>/dev/null) + appname=$(git remote -v 2>/dev/null | grep -Ei "dokku@$DOKKU_HOST" | head -n 1 | cut -f2 -d'@' | cut -f1 -d' ' | cut -f2 -d':' 2>/dev/null) set -e else echo "This is not a git repository"