Krojack / SABnzdb_discord

Bash script to post SABnzdb notifications to Discord
3 stars 0 forks source link

Notification script returned exit code -1 #2

Open Hilljack4n6 opened 10 months ago

Hilljack4n6 commented 10 months ago

Upon clicking "Test notification", the following error is returned: Notification script returned exit code -1 and output "None"

The script is in the correct location, with the correct webhook url. The file has been given permission to execute via -x. Any suggestions? 2024-01-11 14_43_59-Window

diabillic commented 2 weeks ago

i had this same issue before realizing I created the bash script in vs code on windows which makes the file in DOS format. you need to switch it to UNIX format

sed -i 's/\r$//' discord-SAB.sh

that should fix your issue