From 66b688d2f216f2eb4465aa0f180db785b24955da Mon Sep 17 00:00:00 2001 From: Paul Wilde Date: Wed, 13 Mar 2024 11:35:15 +0000 Subject: [PATCH] fixed some curl refs --- backup.ps1 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/backup.ps1 b/backup.ps1 index a6b2fc4..17deede 100644 --- a/backup.ps1 +++ b/backup.ps1 @@ -16,7 +16,7 @@ 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 @@ -25,7 +25,7 @@ if ( $running ) { } 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 @@ -39,14 +39,14 @@ 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 } } 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