From d3b6dfeae9672c2e3ef1b58f80c62b1763f01ceb Mon Sep 17 00:00:00 2001 From: yulei Date: Sat, 30 Nov 2024 14:41:00 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E7=89=B9=E6=AE=8A=E8=A7=84?= =?UTF-8?q?=E5=88=99=E4=B8=8B=E8=BD=BD=E8=A6=86=E7=9B=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- openclash-special-rules.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 openclash-special-rules.sh 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