From d575f6061e00c089652efbc0efb8e231f60985c4 Mon Sep 17 00:00:00 2001 From: Arpit Gupta Date: Sat, 2 May 2026 00:04:28 +0530 Subject: [PATCH 1/2] wcurl: prevent silent overwrite with --output on older curl --- wcurl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wcurl b/wcurl index c39806c..b3520c2 100755 --- a/wcurl +++ b/wcurl @@ -240,6 +240,8 @@ exec_curl() # If there are less than two URLs, do not set the parallel flag. if [ "$#" -lt 2 ]; then CURL_PARALLEL="" + elif [ "${HAS_USER_SET_OUTPUT}" = "true" ] && [ -z "${CURL_NO_CLOBBER}" ]; then + error "Using --output with multiple URLs requires curl >= 7.83.0 (--no-clobber)." fi # Start assembling the command. From 78738975a780bb2b4f972b5443797489a0c2d46e Mon Sep 17 00:00:00 2001 From: Arpit Gupta <98796025+arpitguptagithub@users.noreply.github.com> Date: Sat, 2 May 2026 05:05:24 +0530 Subject: [PATCH 2/2] Update wcurl Updating error format based on suggestion Co-authored-by: Sergio Durigan Junior --- wcurl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcurl b/wcurl index b3520c2..32758fb 100755 --- a/wcurl +++ b/wcurl @@ -241,7 +241,7 @@ exec_curl() if [ "$#" -lt 2 ]; then CURL_PARALLEL="" elif [ "${HAS_USER_SET_OUTPUT}" = "true" ] && [ -z "${CURL_NO_CLOBBER}" ]; then - error "Using --output with multiple URLs requires curl >= 7.83.0 (--no-clobber)." + error "Using '--output' with multiple URLs requires curl >= 7.83.0 ('--no-clobber')." fi # Start assembling the command.