From 982099a13bf6b1c0dbdf7017729d7fbb30dd82f3 Mon Sep 17 00:00:00 2001 From: emkael Date: Sat, 12 Mar 2022 21:08:06 +0100 Subject: Parameter to force (re)generation of the brackets --- scripts/autorun.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'scripts/autorun.sh') diff --git a/scripts/autorun.sh b/scripts/autorun.sh index 48e601e..c2da400 100755 --- a/scripts/autorun.sh +++ b/scripts/autorun.sh @@ -2,9 +2,11 @@ export GIT_SSH_COMMAND="ssh ${LIGA_SSH_OPTS}" +FORCE=${1:-0} + PREVHEAD=$(git rev-parse HEAD) git pull --quiet --rebase --autostash --recurse-submodules --no-stat -if [ -n "$(git diff --name-status --no-renames $PREVHEAD HEAD)" ] +if [ -n "$(git diff --name-status --no-renames $PREVHEAD HEAD)" -o $FORCE != "0" ] then ( date --rfc-3339=seconds; ./generate.sh; ./sync.sh; date --rfc-3339=seconds; ) > ${LIGA_PLAYOFF_LOGFILE} 2>&1 fi -- cgit v1.2.3