1 Star 9 Fork 0

htadiy / Termux-Yunzai-CV-Script

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
install-nodejs.sh 1.00 KB
一键复制 编辑 原始数据 按行查看 历史
htadiy 提交于 2023-12-16 21:11 . 更改echo & 更改nodejs安装方式
#!/bin/bash
# 安装nodejs用
# 233年6月21日の大改
#ver beta0.1
current_user=$(whoami)
if [ "$current_user" != "root" ]; then
echo -e "\e[1;31m请使用root用户来使用此脚本!\e[0m"
exit 1
fi
echo -e "\e[1;31m权限检查通过,开始部署nodejs...\e[0m"
# 安装nodejs
echo -e "\e[1;31m正在安装nodejs...\e[0m"
apt remove nodejs
apt remove libnode72
apt-get update && apt-get install -y ca-certificates curl gnupg
curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
NODE_MAJOR=20
echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list
apt-get update && apt-get install nodejs -y
clear
echo "安装完成,即将返回脚本"
for ((countdown=5; countdown>0; countdown--)); do
echo "倒计时: $countdown"
sleep 1
done
bash <(curl -sL https://gitee.com/paimon114514/termux-yunzai-cv-script/raw/master/miao-menu.sh)
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Shell
1
https://gitee.com/paimon114514/termux-yunzai-cv-script.git
git@gitee.com:paimon114514/termux-yunzai-cv-script.git
paimon114514
termux-yunzai-cv-script
Termux-Yunzai-CV-Script
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891