]> git.rmz.io Git - dotfiles.git/blobdiff - bin/addnzb
bin/addnzb: show curl errors
[dotfiles.git] / 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" \