From b0ec2756608a31273a9fc13fa440e151167b89fc Mon Sep 17 00:00:00 2001 From: "Kyle J. McKay" Date: Thu, 8 Sep 2016 16:26:50 -0700 Subject: [PATCH] update.sh: do nothing if .nofetch exists Normally update.sh will not be run if .nofetch exists, but if it's run manually, it now verifies there's no .nofetch file before running an update -- just in case. Signed-off-by: Kyle J. McKay --- jobd/update.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/jobd/update.sh b/jobd/update.sh index 3860178..c9ba641 100755 --- a/jobd/update.sh +++ b/jobd/update.sh @@ -112,6 +112,10 @@ if check_interval lastrefresh $cfg_min_mirror_interval; then progress "= [$proj] update skip (last at $(config_get lastrefresh))" exit 0 fi +if [ -e .nofetch ]; then + progress "x [$proj] update disabled (.nofetch exists)" + exit 0 +fi progress "+ [$proj] update (`date`)" # Any pre-existing FETCH_HEAD from a previous fetch failed or not is garbage -- 2.11.4.GIT