LAST233 commited on
Commit
7e65ef1
·
verified ·
1 Parent(s): 61ae4a8

Update autocommit.sh

Browse files
Files changed (1) hide show
  1. autocommit.sh +1 -1
autocommit.sh CHANGED
@@ -5,7 +5,7 @@ set -e # 遇到错误立即停止
5
  WORKSPACE="/home/cpp_competition" # 你的开发目录(只读源)
6
  BACKUP_DIR="/tmp/git_backup_$(date +%s)" # 临时备份目录
7
  # 注意:这里使用干净URL,依赖全局凭证
8
- REPO_URL="https://github.com/$(GH_USERNAME)/$(REPO_NAME).git"
9
  BRANCH_BACKUP="auto-backup"
10
 
11
  # ========== 在隔离环境备份 ==========
 
5
  WORKSPACE="/home/cpp_competition" # 你的开发目录(只读源)
6
  BACKUP_DIR="/tmp/git_backup_$(date +%s)" # 临时备份目录
7
  # 注意:这里使用干净URL,依赖全局凭证
8
+ REPO_URL="https://github.com/${GH_USERNAME}/${REPO_NAME}.git"
9
  BRANCH_BACKUP="auto-backup"
10
 
11
  # ========== 在隔离环境备份 ==========