Basic Script (Run-Script-After) Warning

Hello,

Thanks in advance for taking the time to take a look. I’m working to create a script which will use curl to send a notification via my selfhosted instance of ntfy.
The script is running and doing what I want it to do however after each run a warning is presented within the GUI and I’m not sure why.

System Details:

Warning displayed:

2023-10-04 11:23:55 +01 - [Warning-Duplicati.Library.Modules.Builtin.RunScript-StdErrorNotEmpty]: The script “/scripts/duplicati-backup.sh” reported error messages: % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:–:-- --:–:-- --:–:-- 0 100 233 100 196 100 37 501 94 --:–:-- --:–:-- --:–:-- 595

Script:

#!/bin/bash
BKUPRESULT=$DUPLICATI__PARSED_RESULT
JOBNAME=$DUPLICATI__backup_name
NTFY=https://ntfy.xxxx.xxxx/topic
if [ $BKUPRESULT == “Success” ]
then
curl -H “Title: $JOBNAME Complete” -H “Priority: default” -d “Backup Completed with Status: $BKUPRESULT” $NTFY
fi
exit 0

It appears to present the warning as soon as the curl statement is input. I’m very much a novice when it comes to scripting especially with linux. So any help/direction would be great!

J

I’ve actually just resolved this! I’ve added the flag -s to the end of the curl statement. I think the standard report to console was causing the warning so this suppressed it.