From 56a6269975d3201b6a2e7ca8a04dc07df97c1a90 Mon Sep 17 00:00:00 2001 From: mat ess Date: Fri, 21 Oct 2022 00:09:45 -0400 Subject: [PATCH] Add rework debug --- script.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/script.sh b/script.sh index 10f5158..99a3258 100755 --- a/script.sh +++ b/script.sh @@ -4,8 +4,6 @@ set -e NETLIFY_SITE="" NETLIFY_DEPLOY_OPTIONS="" -echo test - if [ -n "$PLUGIN_PROD" ] && [ "$PLUGIN_PROD" != false ] then NETLIFY_DEPLOY_OPTIONS="--prod" @@ -41,7 +39,8 @@ if [ -n "$PLUGIN_SITE" ] then NETLIFY_SITE="--auth $PLUGIN_TOKEN --site $PLUGIN_SITE" echo "> Deploying on Netlify…" && - echo netlify deploy $NETLIFY_SITE $NETLIFY_DEPLOY_OPTIONS --message "$DRONE_COMMIT_MESSAGE"; + echo "> (Using option $NETLIFY_DEPLOY_OPTIONS)" && + netlify deploy $NETLIFY_SITE $NETLIFY_DEPLOY_OPTIONS --message "$DRONE_COMMIT_MESSAGE"; else echo "> Error! site (site ID or name) and token are required" exit 1