Fix crash on missing run_cleanup
continuous-integration/drone/push Build is passing Details

This commit is contained in:
3wc 2020-09-27 13:25:01 +02:00
parent 6f125529b1
commit ed773e37f0
1 changed files with 1 additions and 2 deletions

View File

@ -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 ---"