From 1a467da9212d571630c2c2cb25ce6a9be72d0f2f Mon Sep 17 00:00:00 2001 From: Paul Wilde Date: Wed, 13 Mar 2024 11:30:55 +0000 Subject: [PATCH] fixed some curl refs --- backup.ps1 | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/backup.ps1 b/backup.ps1 index 629522a..5e629bb 100644 --- a/backup.ps1 +++ b/backup.ps1 @@ -16,19 +16,19 @@ Write-Host $running if ( $running ) { Write-Host "Backup already running; $running. Exiting..." if ( $KUMA_ID -ne "" ){ - curl https://$KUMA_URL/api/push/$KUMA_ID?status=down&msg=Failed&ping= + curl "https://$KUMA_URL/api/push/$KUMA_ID?status=down&msg=Failed&ping=" } if ( $HEALTHCHECK_UUID -ne "" ) { - curl https://hc-ping.com/$HEALTHCHECK_UUID/fail + curl "https://hc-ping.com/$HEALTHCHECK_UUID/fail" } exit } Write-Host "Not currently running. Continuing..." if ( $KUMA_ID -ne "" ){ - curl https://$KUMA_URL/api/push/$KUMA_ID?status=up&msg=Running&ping= + curl "https://$KUMA_URL/api/push/$KUMA_ID?status=up&msg=Running&ping=" } if ( $HEALTHCHECK_UUID -ne "" ) { - curl https://hc-ping.com/$HEALTHCHECK_UUID/start + curl "https://hc-ping.com/$HEALTHCHECK_UUID/start" } if ( $PRE_RUN_SCRIPT ) { . $dir/$PRE_RUN_SCRIPT @@ -39,16 +39,16 @@ if ( $LastExitCode -eq 0 ) { . $dir/$POST_RUN_SCRIPT } if ( $KUMA_ID -ne "" ){ - curl https://$KUMA_URL/api/push/$KUMA_ID?status=up&msg=Completed&ping= + curl "https://$KUMA_URL/api/push/$KUMA_ID?status=up&msg=Completed&ping=" } if ( $HEALTHCHECK_UUID -ne "" ) { - curl https://hc-ping.com/$HEALTHCHECK_UUID + curl "https://hc-ping.com/$HEALTHCHECK_UUID" } } else { if ( $KUMA_ID -ne "" ){ - curl https://$KUMA_URL/api/push/$KUMA_ID?status=down&msg=Failed&ping= + curl "https://$KUMA_URL/api/push/$KUMA_ID?status=down&msg=Failed&ping=" } if ( $HEALTHCHECK_UUID -ne "" ) { - curl https://hc-ping.com/$HEALTHCHECK_UUID/fail + curl "https://hc-ping.com/$HEALTHCHECK_UUID/fail" } }