Update CLI

Signed-off-by: jolheiser <john.olheiser@gmail.com>
pull/1/head
jolheiser 2020-01-28 09:09:54 -06:00
parent c02be20586
commit ef10f9b285
No known key found for this signature in database
GPG Key ID: 83E486E71AFEB820
1 changed files with 3 additions and 3 deletions

View File

@ -31,9 +31,9 @@ fi
if [ -n "$PLUGIN_SITE_ID" ] && [ -n "$PLUGIN_TOKEN" ] if [ -n "$PLUGIN_SITE_ID" ] && [ -n "$PLUGIN_TOKEN" ]
then then
NETLIFY_SITE="-t $PLUGIN_TOKEN -s $PLUGIN_SITE_ID" NETLIFY_SITE="-a $PLUGIN_TOKEN -s $PLUGIN_SITE_ID"
echo "> Deploying on Netlify…" && echo "> Deploying on Netlify…" &&
netlify $NETLIFY_SITE deploy $NETLIFY_DEPLOY_OPTIONS; netlify deploy $NETLIFY_SITE $NETLIFY_DEPLOY_OPTIONS;
else else
echo "> Error! site_id and token are required" echo "> Error! site_id and token are required"
exit 1 exit 1
@ -52,7 +52,7 @@ fi
if [ -n "$PLUGIN_SITE_NAME" ] || [ -n "$PLUGIN_DOMAIN" ] if [ -n "$PLUGIN_SITE_NAME" ] || [ -n "$PLUGIN_DOMAIN" ]
then then
echo "> Updating your Netlify site…" && echo "> Updating your Netlify site…" &&
netlify $NETLIFY_SITE update $NETLIFY_UPDATE_OPTIONS; netlify $NETLIFY_SITE deploy $NETLIFY_UPDATE_OPTIONS;
fi fi
rc=$?; rc=$?;