Fix has_dokku_remote

`git remote show <remote>` seems to really check if the remote is a git repo
whereas we just want to know if a remote named "dokku" is present
This commit is contained in:
Guillaume Wuip
2016-06-26 21:06:42 +02:00
parent 2a76f7c3b3
commit 3cc1b42160

View File

@@ -38,7 +38,7 @@ is_git_repo() {
}
has_dokku_remote() {
git remote show dokku &>/dev/null
git remote show | grep dokku
}
if [[ -z $DOKKU_HOST ]]; then