Skip to content

Commit

Permalink
Update node path
Browse files Browse the repository at this point in the history
  • Loading branch information
krutten committed Oct 7, 2024
1 parent 9160177 commit 943bb24
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bin/package
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ node::install() {
download_file="${TMP_DIR}/node${NODE_VERSION}.tar.gz"

export node_install_dir="/tmp/node${NODE_VERSION}"
export node_dir="${node_install_dir}/node-v${NODE_VERSION}-linux-x64"
#export node_dir="${node_install_dir}/node-v${NODE_VERSION}-linux-x64"

mkdir -p "${node_install_dir}"

Expand Down Expand Up @@ -38,12 +38,12 @@ node::install() {
rm "${download_file}"
fi

if [[ ! -f "${node_dir}/bin/node" ]]; then
if [[ ! -f "${node_install_dir}/bin/node" ]]; then
echo " **ERROR** Could not download nodejs"
exit 1
fi

export NODE_HOME="${node_dir}"
export NODE_HOME="${node_install_dir}"
}

declare git_url git_tag work_dir
Expand Down

0 comments on commit 943bb24

Please sign in to comment.