]> git.rmz.io Git - dotfiles.git/commitdiff
bin/addnzb: show curl errors
authorSamir Benmendil <me@rmz.io>
Sat, 14 Jan 2023 02:15:41 +0000 (02:15 +0000)
committerSamir Benmendil <me@rmz.io>
Sat, 14 Jan 2023 02:35:29 +0000 (02:35 +0000)
bin/addnzb

index c81c3c1473fb2437fb485bfb76ec313cc7a8f5ed..511c1bf2422319a048caccb6eee156debb96fb21 100755 (executable)
@@ -40,7 +40,8 @@ if [[ -n $category ]]; then
 fi
 
 for f in ${args[@]}; do
-    curl -s $URL/sabnzbd/api \
+    curl --silent --show-error \
+        $URL/sabnzbd/api \
         -F apikey="$API_KEY" \
         -F mode="addfile" \
         -F name="@$f" \