From 7f99fcb844bad95cb4bb95c6fb40ec4ce621387c Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Wed, 14 Jan 2015 04:31:18 -0500 Subject: [PATCH] Use double-square brackets in if test --- 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 efc91ba83..deefc046a 100755 --- a/contrib/dokku_client.sh +++ b/contrib/dokku_client.sh @@ -4,7 +4,7 @@ set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x if [[ ! -z $DOKKU_HOST ]]; then function _dokku { 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 appname=$(git remote -v 2>/dev/null | grep -Ei "^dokku" | head -n 1 | cut -f1 -d' ' | cut -f2 -d':' 2>/dev/null) set -e