diff --git a/openclash-special-rules.sh b/openclash-special-rules.sh new file mode 100644 index 0000000..ad80fe1 --- /dev/null +++ b/openclash-special-rules.sh @@ -0,0 +1,11 @@ +#!/bin/bash +OUTPUT_DIR="/root/Personal-project/openclash-rule/auto-special-rule/" +GIT_REPO_DIR="/root/Personal-project/openclash-rule/" + +cd "$GIT_REPO_DIR" || { log "Failed to change directory to: $GIT_REPO_DIR"; exit 1; } +if git pull; then + log "Git pull successful" +else + log "Git pull failed" + exit 1 +fi