fix formatting according to shfmt
This commit is contained in:
@@ -193,17 +193,17 @@ 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 eq 0 ; 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"
|
||||||
exit 15
|
exit 15
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
dokku_log_fail "Missing tty, try running ssh -t which will allocate new tty for you"
|
dokku_log_fail "Missing tty, try running ssh -t which will allocate new tty for you"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
dokku_log_info1 "No need to unlock app, carrying on with build"
|
dokku_log_info1 "No need to unlock app, carrying on with build"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -241,8 +241,8 @@ cmd-git-unlock() {
|
|||||||
|
|
||||||
if [[ -d "$APP_CLONE_ROOT" ]]; then
|
if [[ -d "$APP_CLONE_ROOT" ]]; then
|
||||||
dokku_log_info1 "About to delete $APP_CLONE_ROOT"
|
dokku_log_info1 "About to delete $APP_CLONE_ROOT"
|
||||||
rm -rf "$APP_CLONE_ROOT"
|
rm -rf "$APP_CLONE_ROOT"
|
||||||
else
|
else
|
||||||
dokku_log_info1 "No clone folder exists app already unlocked"
|
dokku_log_info1 "No clone folder exists app already unlocked"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user