Skip to content

Commit b61b2ae

Browse files
authored
Fix Veriable
Changed the variable for the branch from {BRANCH} to {GITHUB_BRANCH}
1 parent 7974126 commit b61b2ae

File tree

3 files changed

+1
-1
lines changed

3 files changed

+1
-1
lines changed

backup.sh

100644100755
File mode changed.

kgb.sh

100644100755
File mode changed.

lib/functions/github_functions.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ backup_config_folders() {
5555
log_msg "Committing to GitHub repository"
5656
git -C "${FOLDER}" commit -m "backup $(date +%F)" | tee -a "${HOME}/kgb-log/$(date +%F).log"
5757
log_msg "Pushing to GitHub repository"
58-
git -C "${FOLDER}" push -u origin "${BRANCH}" | tee -a "${HOME}/kgb-log/$(date +%F).log"
58+
git -C "${FOLDER}" push -u origin "${GITHUB_BRANCH}" | tee -a "${HOME}/kgb-log/$(date +%F).log"
5959
done
6060
}
6161

0 commit comments

Comments
 (0)