diff options
| author | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2025-04-17 07:52:55 +0200 |
|---|---|---|
| committer | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2025-04-17 07:52:55 +0200 |
| commit | bd32b8f01b946a8856f2e1ab907122842447e11a (patch) | |
| tree | 457fee41cab9cd4d3dc71b66f8c414010a7cadd4 | |
| parent | 60f13a8717082626fabefa82417b050d6339a177 (diff) | |
| download | upload-artifact-bd32b8f01b946a8856f2e1ab907122842447e11a.tar.gz | |
Replace --fail-with-body with -f
The former might not be available on older versions of cURL, such as
that distributed by Ubuntu focal. Also, upload-artifact is not
interested in the HTTP body returned on 4xx errors, so the latter is
more appropriate.
| -rwxr-xr-x | upload-artifact | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/upload-artifact b/upload-artifact index d0a172e..f10aad7 100755 --- a/upload-artifact +++ b/upload-artifact @@ -23,7 +23,7 @@ usage() login() { curl -X POST \ - --fail-with-body \ + -f \ -c "$cookiejar" \ --data-urlencode "username@$username" \ --data-urlencode "password@$password" \ @@ -55,7 +55,7 @@ upload() ldir="/${dir:+$dir/}" curl -X POST \ - --fail-with-body \ + -f \ -H 'Expect:' \ -b "$cookiejar" \ -F dir="$ldir" \ @@ -84,7 +84,7 @@ share() name="/${dir:+$dir/}$f" curl -s -X POST \ - --fail-with-body \ + -f \ -b "$cookiejar" \ --data-urlencode "name=$name" \ "$URL/share" > "$resp" |
