From ed773e37f0feb689931a24ecfc3f1761c7d7a328 Mon Sep 17 00:00:00 2001 From: 3wc <3wc.git@doesthisthing.work> Date: Sun, 27 Sep 2020 13:25:01 +0200 Subject: [PATCH] Fix crash on missing run_cleanup --- plugin.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plugin.sh b/plugin.sh index 2e72842..a2f3b89 100755 --- a/plugin.sh +++ b/plugin.sh @@ -74,7 +74,7 @@ run_purge() { # try and remove all secrets; Docker will leave ones which are in use docker -H "$DOCKER_HOST" secret ls --format '{{ .Name }}' | xargs -i sh -c "echo {}; docker -H \"$DOCKER_HOST\" secret rm {} || true" - echo "--- end cleanup ---" + echo "--- end purge ---" } run_plugin() { @@ -91,7 +91,6 @@ run_plugin() { if [ "$PLUGIN_PURGE" == "true" ]; then run_purge - run_cleanup fi echo "--- end ssh-stack-deploy ---"