termux_setup_nodejs: fix check for cached nodejs

This commit is contained in:
Henrik Grimler 2022-03-13 18:18:56 +01:00
parent 07a6725049
commit 3a7bb54376
No known key found for this signature in database
GPG Key ID: B0076E490B71616B
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@ termux_setup_nodejs() {
fi
if [ "$TERMUX_ON_DEVICE_BUILD" = "false" ]; then
if [ ! -x "$NODEJS_FOLDER/nodejs" ]; then
if [ ! -x "$NODEJS_FOLDER/bin/node" ]; then
mkdir -p "$NODEJS_FOLDER"
local NODEJS_TAR_FILE=$TERMUX_PKG_TMPDIR/nodejs-$NODEJS_VERSION.tar.xz
termux_download https://nodejs.org/dist/v${NODEJS_VERSION}/node-v${NODEJS_VERSION}-linux-x64.tar.xz \