Update Nlbench.sh

This commit is contained in:
Jensfrank 2024-07-05 15:03:24 +08:00 committed by GitHub
parent b6d288818d
commit 7b6e5f5d59
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -49,7 +49,7 @@ update_scripts() {
echo -e "${GREEN}脚本更新成功!新版本: $NEW_VERSION${NC}" echo -e "${GREEN}脚本更新成功!新版本: $NEW_VERSION${NC}"
echo -e "${YELLOW}请等待 3 秒应用更新...${NC}" echo -e "${YELLOW}请等待 3 秒应用更新...${NC}"
sleep 3 sleep 3
exec bash "$0" # 自动重新启动脚本以应用更新 exec bash "$0" # 执行一次重新启动以应用更新
else else
echo -e "${RED}无法替换脚本文件。请检查权限。${NC}" echo -e "${RED}无法替换脚本文件。请检查权限。${NC}"
sleep 2 sleep 2