From 669f5f92f3eacefc2d716a32642eb0803821cfee Mon Sep 17 00:00:00 2001 From: dacav Date: Tue, 22 Apr 2025 23:31:56 +0200 Subject: [PATCH] Add curl options: -S and -f -S = show error, very useful with -s -f = fail on error --- imgbb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imgbb b/imgbb index 214c46f..7842930 100755 --- a/imgbb +++ b/imgbb @@ -282,7 +282,7 @@ else fi # Build curl options. -curl_opts=(-s -L -X POST) +curl_opts=(-s -S -f -L -X POST) curl_opts+=(--form "key=$api_key") curl_opts+=(--form "image=@$TMP_IMG")