From 7d10cdb68b23cd67a1339ba89b751a427633e6f2 Mon Sep 17 00:00:00 2001 From: Chumper Date: Wed, 15 Feb 2023 23:10:38 +0100 Subject: [PATCH] chore(node): cleanup files --- src/usr/local/buildpack/tools/v2/node.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/usr/local/buildpack/tools/v2/node.sh b/src/usr/local/buildpack/tools/v2/node.sh index 9d571c1e8f..1817ed64a8 100644 --- a/src/usr/local/buildpack/tools/v2/node.sh +++ b/src/usr/local/buildpack/tools/v2/node.sh @@ -41,17 +41,17 @@ function install_tool () { local npm # temp npm executable checksums=$(get_from_url "https://nodejs.org/dist/v${TOOL_VERSION}/SHASUMS256.txt") - echo "file: ${checksums}" # get checksum from file original_checksum=$(grep "node-v${TOOL_VERSION}-linux-x64.tar.xz" "${checksums}" | cut -d' ' -f1) - echo "checksum: ${original_checksum}" - # download file # file=$(get_from_url "https://nodejs.org/dist/v${TOOL_VERSION}/node-v${TOOL_VERSION}-linux-x64.tar.xz") file=$(get_from_url \ - "https://nodejs.org/dist/v${TOOL_VERSION}/node-v${TOOL_VERSION}-linux-x64.tar.xz" "node-v${TOOL_VERSION}-linux-x64.tar.xz" "${original_checksum}" "sha256sum" ) + "https://nodejs.org/dist/v${TOOL_VERSION}/node-v${TOOL_VERSION}-linux-x64.tar.xz" \ + "node-v${TOOL_VERSION}-linux-x64.tar.xz" \ + "${original_checksum}" \ + "sha256sum" ) versioned_tool_path=$(create_versioned_tool_path)