Fix: appname was not correctly detected

This commit is contained in:
Alan Justino committed 2015-09-08 11:24:03 -03:00
1 parent 7a1c080051
commit ad9d331257
1 file changed
+1 -1
+1 -1
View File
@@ -46,7 +46,7 @@ if [[ ! -z $DOKKU_HOST ]]; then
appname="" appname=""
if [[ -d .git ]] || git rev-parse --git-dir > /dev/null 2>&1; then if [[ -d .git ]] || git rev-parse --git-dir > /dev/null 2>&1; then
set +e 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 set -e
else else
echo "This is not a git repository" echo "This is not a git repository"