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:
2
start.sh
2
start.sh
@ -660,7 +660,7 @@ fi
|
|||||||
# 判断订阅是否已是完整 Clash YAML(Meta / Mihomo / Premium)
|
# 判断订阅是否已是完整 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"
|
echo "[INFO] subscription is a full Clash config, use it directly"
|
||||||
cp -f "$Temp_Dir/clash.yaml" "$Conf_Dir/config.yaml"
|
cp -f "$Temp_Dir/clash.yaml" "$Conf_Dir/config.yaml"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user