Skip to content

『run.sh』的代码逻辑是不是错了? #16

@jacobin

Description

@jacobin
if [ ! -f "./clash.yaml" ];then
    rm ./clash.yaml
fi
if [ ! -f "./v2ray.txt" ];then
    rm ./v2ray.txt
fi

如果不存在,你就删了它 ... 如果它存在,它就真的留在路中间。
我猜你的意图是把老文件删了,让路给新文件
接下来你的

wget $subscribeclash -O ./clash.yaml
wget $subscribeV2ray -O ./v2ray.txt

能不能成功覆写?我经常下载到0字节的clash.yaml

还有,"target=clash"该改成"target=clashr"了。clash的老内核早已经跑路了,clash_meta支持了更多的协议譬如vless

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions