mirror of
https://github.com/wnlen/clash-for-linux.git
synced 2026-03-21 22:06:45 +08:00
Update start.sh
This commit is contained in:
4
start.sh
4
start.sh
@ -660,7 +660,7 @@ fi
|
||||
# 判断订阅是否已是完整 Clash YAML(Meta / Mihomo / Premium)
|
||||
# 若是完整配置,则直接使用,跳过后续代理拆解与拼接
|
||||
# =========================================================
|
||||
if grep -qE '^(proxies:|proxy-providers:|mixed-port:|port:)' "$Temp_Dir/clash.yaml"; then
|
||||
if [ -s "$Temp_Dir/clash.yaml" ] && grep -qE '^(proxies:|proxy-providers:|mixed-port:|port:)' "$Temp_Dir/clash.yaml"; then
|
||||
echo "[INFO] subscription is a full Clash config, use it directly"
|
||||
cp -f "$Temp_Dir/clash.yaml" "$Conf_Dir/config.yaml"
|
||||
|
||||
@ -682,7 +682,7 @@ if grep -qE '^(proxies:|proxy-providers:|mixed-port:|port:)' "$Temp_Dir/clash.ya
|
||||
fi
|
||||
|
||||
SKIP_CONFIG_REBUILD=true
|
||||
fi
|
||||
fi
|
||||
|
||||
#################### 订阅转换/拼接(非兜底路径) ####################
|
||||
if [ "$SKIP_CONFIG_REBUILD" != "true" ]; then
|
||||
|
||||
Reference in New Issue
Block a user