Skip to content

Instantly share code, notes, and snippets.

@qwerzl
qwerzl / update.sh
Last active July 17, 2022 14:30
Clash update subscriptions
#!/bin/bash
DIRECTORY=/etc/clash
URL=[订阅地址]
cd $DIRECTORY
mv ./config.yaml ./config.yaml.bak
curl -L -o config.yaml $URL
CURLSTATUS=$?