From ed06eafc4c55fab26ef25be8eb5412f9e6486576 Mon Sep 17 00:00:00 2001 From: Ash Date: Sun, 16 Jun 2024 23:32:57 -0700 Subject: [PATCH] feat: Use --fail with curl to fail on non-200 status codes. --- metadata/metadata | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/metadata/metadata b/metadata/metadata index 756dff7..9b38a37 100644 --- a/metadata/metadata +++ b/metadata/metadata @@ -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 | \