fix shfmt

This commit is contained in:
arturs committed 2021-03-11 17:59:46 +02:00
1 parent ebcacdb5af
commit 888f45254a
2 files changed
+15 -14

No files matched your search

+15 -13
View File
@@ -245,20 +245,22 @@ cmd-git-unlock() {
local APP_CLONE_ROOT="$DOKKU_LIB_ROOT/data/git/$APP" local APP_CLONE_ROOT="$DOKKU_LIB_ROOT/data/git/$APP"
if [[ -d "$APP_CLONE_ROOT" ]]; then if [[ -d "$APP_CLONE_ROOT" ]]; then
if [[ "$FLAG" == "--force" ]]; then if [[ "$FLAG" == "--force" ]]; 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"
dokku_log_info1 "Successfully unlocked $APP" dokku_log_info1 "Successfully unlocked $APP"
else else
read -rp "Are you sure that want to delete clone folder (y/n)?" choice read -rp "Are you sure that want to delete clone folder (y/n)?" choice
case "$choice" in case "$choice" in
y|Y ) dokku_log_info1 "About to delete $APP_CLONE_ROOT" y | Y)
rm -rf "$APP_CLONE_ROOT" dokku_log_info1 "About to delete $APP_CLONE_ROOT"
dokku_log_info1 "Successfully unlocked $APP";; rm -rf "$APP_CLONE_ROOT"
n|N ) echo "no";; dokku_log_info1 "Successfully unlocked $APP"
* ) echo "please answer with yes or no";; ;;
n | N) echo "no" ;;
*) echo "please answer with yes or no" ;;
esac esac
fi fi
else else
dokku_log_info1 "No clone folder exists app already unlocked" dokku_log_info1 "No clone folder exists app already unlocked"
fi fi
-1
View File
@@ -8,7 +8,6 @@ setup() {
touch /home/dokku/.ssh/known_hosts touch /home/dokku/.ssh/known_hosts
chown dokku:dokku /home/dokku/.ssh/known_hosts chown dokku:dokku /home/dokku/.ssh/known_hosts
touch /home/dokku/data/git/$TEST_APP touch /home/dokku/data/git/$TEST_APP
} }
teardown() { teardown() {