From f0530827a0f1c9f2e04ac3766f70547c6c90a3a9 Mon Sep 17 00:00:00 2001 From: Christoph Date: Fri, 4 Sep 2020 21:58:26 +0200 Subject: [PATCH] update_git_repositories.sh: add repository 'backup-rcopy'. --- update_git_repositories.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/update_git_repositories.sh b/update_git_repositories.sh index 8073beb..615b564 100755 --- a/update_git_repositories.sh +++ b/update_git_repositories.sh @@ -110,5 +110,17 @@ for _git_base_dir in $GIT_BASE_DIRECTORIES ; do done done +if [[ -d "/root/crontab/backup-rcopy" ]]; then + echo "" + echononl " Update Repository /root/crontab/backup-rcopy.." + git -C "/root/crontab/backup-rcopy" pull > $log_file 2>&1 + if [[ $? -eq 0 ]] ; then + echo_ok + else + echo_failed + error "$(cat $log_file)" + fi +fi + echo "" clean_up