Skip to content

Commit 2da8d1a

Browse files
authored
Update nodejs-install.sh
1 parent fa466c8 commit 2da8d1a

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

nodejs-install.sh

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,9 @@ fi
1212
echo "请输入要安装的${BASENAME}版本的下载链接"
1313
read -p "默认版本:18.16.1 :" VERSION;
1414
if [ "$VERSION" == "" ];then
15-
DOWNLOADURL=https://nodejs.org/dist/v18.16.1/node-v18.16.1-linux-x64.tar.xz
16-
else
17-
DOWNLOADURL=${VERSION}
15+
VERSION=18.16.1
1816
fi
19-
17+
DOWNLOADURL=https://nodejs.org/dist/v${VERSION}/node-v${VERSION}-linux-x64.tar.xz
2018

2119
#设定安装目录
2220
DIR=/usr/local

0 commit comments

Comments
 (0)