Skip to content

Commit

Permalink
feat: Use --fail with curl to fail on non-200 status codes.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tuxdude committed Jun 17, 2024
1 parent 10127cd commit ed06eaf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion metadata/metadata
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ current_node_version() {
}

latest_node_version() {
curl --silent --location https://nodejs.org/dist/index.tab | \
curl --silent --fail --location https://nodejs.org/dist/index.tab | \
tail -n+2 | \
cut -d $'\t' -f 1 | \
sort --version-sort --reverse | \
Expand Down

0 comments on commit ed06eaf

Please sign in to comment.