fix has_tty if condition
This commit is contained in:
1 parent
b1db1e3e6f
commit
58dca68fb4
1 file changed
+1
-1
@@ -194,7 +194,7 @@ cmd-git-sync() {
|
|||||||
verify_app_name "$APP"
|
verify_app_name "$APP"
|
||||||
|
|
||||||
if [[ -d "$DOKKU_LIB_ROOT/data/git/$APP" ]]; then
|
if [[ -d "$DOKKU_LIB_ROOT/data/git/$APP" ]]; then
|
||||||
if [[ has_tty ]]; then
|
if has_tty eq 0 ; then
|
||||||
cmd-git-unlock "$APP"
|
cmd-git-unlock "$APP"
|
||||||
if [[ -d "$DOKKU_LIB_ROOT/data/git/$APP" ]]; then
|
if [[ -d "$DOKKU_LIB_ROOT/data/git/$APP" ]]; then
|
||||||
dokku_log_fail "Failed to delete existing clone folder"
|
dokku_log_fail "Failed to delete existing clone folder"
|
||||||
|
|||||||
Reference in new issue
Block a user