Files
openclash-rule/openclash-special-rules.sh
yulei 9e9b0f8ad3 # Please enter the commit message for your changes. Lines starting
# with '#' will be ignored, and an empty message aborts the commit.
#
# On branch dev
# Your branch is up to date with 'origin/dev'.
#
# Changes to be committed:
#	new file:   auto-special-rule/openai.yaml
#	modified:   openclash-special-rules.sh
#
2024-11-30 14:44:56 +08:00

12 lines
355 B
Bash

#!/bin/bash
OUTPUT_DIR="/root/Personal-project/openclash-special-rule/openclash-rule/auto-special-rule/"
GIT_REPO_DIR="/root/Personal-project/openclash-special-rule/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