Skip to content

Commit

Permalink
chore(node): cleanup files
Browse files Browse the repository at this point in the history
  • Loading branch information
Chumper committed Feb 15, 2023
1 parent 1f15cb2 commit 7c606e9
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/usr/local/buildpack/tools/v2/node.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,17 +41,16 @@ 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)

Expand Down

0 comments on commit 7c606e9

Please sign in to comment.