Skip to content

Commit e826d31

Browse files
committed
upload-to-github: fix previous "fix"
The fix to detect HTTP status codes indicating errors was too stringent, and it was incorrect, too: wildcards need to be outside any quotes. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 1bafa00 commit e826d31

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

upload-to-github.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ do
7474
json="$(curl -i --netrc -XPOST -H "Content-Type: $contenttype" \
7575
--data-binary @"$path" "$url/$id/assets?name=$basename")" &&
7676
case "$json" in
77-
"HTTP/1.? 200") ;; # okay
77+
HTTP/1.?\ [12]*) ;; # okay
7878
*) false;; # error!
7979
esac ||
8080
die "Could not upload $path (response: $json)"

0 commit comments

Comments
 (0)