From 4c2562217650d179af9402c25e15105d401f68d2 Mon Sep 17 00:00:00 2001 From: R Date: Mon, 15 May 2023 21:01:21 +0200 Subject: [PATCH] use wget --- linux/ubuntu/scripts/act.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linux/ubuntu/scripts/act.sh b/linux/ubuntu/scripts/act.sh index b984250..894ce1b 100755 --- a/linux/ubuntu/scripts/act.sh +++ b/linux/ubuntu/scripts/act.sh @@ -118,7 +118,7 @@ for ver in "${NODE[@]}"; do VER=$(curl https://nodejs.org/download/release/index.json | jq "[.[] | select(.version|test(\"^v${ver}\"))][0].version" -r) NODEPATH="$AGENT_TOOLSDIRECTORY/node/${VER:1}/$(node_arch)" mkdir -v -m 0777 -p "$NODEPATH" - curl -SsL "https://nodejs.org/download/release/latest-v${ver}.x/node-$VER-linux-$(node_arch).tar.xz" -O "node-$VER-linux-$(node_arch).tar.xz" + wget "https://nodejs.org/download/release/latest-v${ver}.x/node-$VER-linux-$(node_arch).tar.xz" -O "node-$VER-linux-$(node_arch).tar.xz" tar -Jxf "node-$VER-linux-$(node_arch).tar.xz" --strip-components=1 -C "$NODEPATH" rm "node-$VER-linux-$(node_arch).tar.xz" if [[ "${ver}" == "16" ]]; then