fix shfmt

This commit is contained in:
arturs
2021-03-11 17:59:46 +02:00
parent ebcacdb5af
commit 888f45254a
2 changed files with 16 additions and 15 deletions

View File

@@ -245,20 +245,22 @@ cmd-git-unlock() {
local APP_CLONE_ROOT="$DOKKU_LIB_ROOT/data/git/$APP"
if [[ -d "$APP_CLONE_ROOT" ]]; then
if [[ "$FLAG" == "--force" ]]; then
dokku_log_info1 "About to delete $APP_CLONE_ROOT"
rm -rf "$APP_CLONE_ROOT"
dokku_log_info1 "Successfully unlocked $APP"
else
read -rp "Are you sure that want to delete clone folder (y/n)?" choice
case "$choice" in
y|Y ) dokku_log_info1 "About to delete $APP_CLONE_ROOT"
rm -rf "$APP_CLONE_ROOT"
dokku_log_info1 "Successfully unlocked $APP";;
n|N ) echo "no";;
* ) echo "please answer with yes or no";;
esac
fi
if [[ "$FLAG" == "--force" ]]; then
dokku_log_info1 "About to delete $APP_CLONE_ROOT"
rm -rf "$APP_CLONE_ROOT"
dokku_log_info1 "Successfully unlocked $APP"
else
read -rp "Are you sure that want to delete clone folder (y/n)?" choice
case "$choice" in
y | Y)
dokku_log_info1 "About to delete $APP_CLONE_ROOT"
rm -rf "$APP_CLONE_ROOT"
dokku_log_info1 "Successfully unlocked $APP"
;;
n | N) echo "no" ;;
*) echo "please answer with yes or no" ;;
esac
fi
else
dokku_log_info1 "No clone folder exists app already unlocked"
fi

View File

@@ -8,7 +8,6 @@ setup() {
touch /home/dokku/.ssh/known_hosts
chown dokku:dokku /home/dokku/.ssh/known_hosts
touch /home/dokku/data/git/$TEST_APP
}
teardown() {