From 58dca68fb4e031debf02e0417a791558d6942ca9 Mon Sep 17 00:00:00 2001 From: arturs Date: Sun, 7 Mar 2021 15:29:07 +0200 Subject: [PATCH] fix has_tty if condition --- plugins/git/internal-functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/git/internal-functions b/plugins/git/internal-functions index e5297f15a..7c24f4652 100755 --- a/plugins/git/internal-functions +++ b/plugins/git/internal-functions @@ -194,7 +194,7 @@ cmd-git-sync() { verify_app_name "$APP" if [[ -d "$DOKKU_LIB_ROOT/data/git/$APP" ]]; then - if [[ has_tty ]]; then + if has_tty eq 0 ; then cmd-git-unlock "$APP" if [[ -d "$DOKKU_LIB_ROOT/data/git/$APP" ]]; then dokku_log_fail "Failed to delete existing clone folder"