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 af65151
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/usr/local/buildpack/tools/v2/node.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit af65151

Please sign in to comment.