diff --git a/bin/clashfm.tar.gz b/bin/clashfm.tar.gz index a999df5..c7950c6 100644 Binary files a/bin/clashfm.tar.gz and b/bin/clashfm.tar.gz differ diff --git a/scripts/clash.sh b/scripts/clash.sh index c456967..aa908cb 100644 --- a/scripts/clash.sh +++ b/scripts/clash.sh @@ -1533,6 +1533,10 @@ case "$1" in shtype=sh && [ -n "$(ls -l /bin/sh|grep -o dash)" ] && shtype=bash $shtype -x $clashdir/clash.sh ;; + -st) + shtype=sh && [ -n "$(ls -l /bin/sh|grep -o dash)" ] && shtype=bash + $shtype -x $clashdir/start.sh $2 $3 $4 $5 $6 + ;; -u) read -p "确认卸载ShellClash?(警告:该操作不可逆!)[1/0] " res if [ "$res" = '1' ]; then diff --git a/scripts/start.sh b/scripts/start.sh index c97e62c..24ec97a 100644 --- a/scripts/start.sh +++ b/scripts/start.sh @@ -255,7 +255,7 @@ EOF` echo ----------------------------------------------- fi #检测并去除无效节点组 - cat $clashdir/config.yaml | grep -A 8 "\-\ name:" | xargs | sed 's/- name: /\n/g' | sed 's/ type: .*proxies: /#/g' | sed 's/ rules:.*//g' | sed 's/- //g' > /tmp/clash_proxies_$USER + cat $yamlnew | grep -A 8 "\-\ name:" | xargs | sed 's/- name: /\n/g' | sed 's/ type: .*proxies: /#/g' | sed 's/ rules:.*//g' | sed 's/- //g' > /tmp/clash_proxies_$USER while read line ;do proxies=$(echo $line | awk -F '#' '{print $2}') proxies_name=$(echo $line | awk -F '#' '{print $1}')