From 0d6dc9b752e1464b6ba049c4059e2d0798718dd3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mikl=C3=B3s=20T=C3=B3th?= <tothmiklostibor@gmail.com> Date: Mon, 10 May 2021 02:31:54 +0200 Subject: [PATCH] fix --- docs/magic.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/docs/magic.sh b/docs/magic.sh index 164659fe..02a7045a 100755 --- a/docs/magic.sh +++ b/docs/magic.sh @@ -26,8 +26,11 @@ for week in 2 3 4 5 6 7 9 10 11 13 14; do echo Executing week pre-build scripts find weeks -name build.sh -type f -exec bash {} \; - - plab flatten weeks/${week}.tex includes/misc-functions.tex /tmp/merge/${week}.tex + weektmp="$week" + if [ "$week" = "9" ]; then + weektmp="8" + fi + plab flatten weeks/${weektmp}.tex includes/misc-functions.tex /tmp/merge/${weektmp}.tex git reset --hard "w${week}" done -- GitLab