~初始化脚本现在会自动清理小米系统升级后残留的/etc_bak文件夹

~修复mihomo内核在部分设备中出现的节点大量不可用的bug
~修复6-3无法导入链接时错误删除了部分链接内容的bug
~修复部分设备更新或下载脚本内容时的base64报错
This commit is contained in:
juewuy
2025-12-09 14:25:30 +08:00
parent 42d5ec5ed5
commit b964a63462
3 changed files with 9 additions and 6 deletions

View File

@@ -620,10 +620,10 @@ setproviders(){ #自定义providers
echo -e "本地配置文件请放在\033[32m$CRASHDIR\033[0m目录下并填写相对路径如【\033[32m./providers/test.yaml\033[0m】"
echo -----------------------------------------------
read -p "请输入providers订阅地址或本地相对路径 > " link
link="$(echo "$link" | tr -d '[:space:]')"
link=$(echo $link | sed 's/ //g') #去空格
[ -n "$(echo $link | grep -E '.*\..*|^\./')" ] && {
read -p "请输入代理服务商的名称或者代号(不可重复) > " name
name="$(echo "$name" | tr -d '[:space:]')"
name=$(echo $name | sed 's/ //g')
[ -n "$name" ] && [ -z "$(grep "name" $CRASHDIR/configs/providers.cfg)" ] && {
echo -----------------------------------------------
echo -e "代理服务商:\033[36m$name\033[0m"