From 5386074c1bc2fedb2aa6b8b0499c76df94858265 Mon Sep 17 00:00:00 2001 From: hankhill19580 <hankhill19580@gmail.com> Date: Sat, 12 Sep 2020 03:52:22 +0000 Subject: [PATCH] line up the lines in the update scripts so they're a little easier to compare side-by-side --- site-updater.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/site-updater.sh b/site-updater.sh index e55fbc796..2ccae00f1 100755 --- a/site-updater.sh +++ b/site-updater.sh @@ -9,8 +9,8 @@ TMP=$(mktemp XXXXXXXXXX) trap 'rm -f $TMP;exit' 0 1 2 15 if [ -d ./.git ]; then - #$MTN pull -k "" "mtn://$MTNURL?$MTNBRANCH" git pull origin master 2>&1 | tee $TMP + if grep "i2p2www/translations/" "$TMP" >/dev/null ; then echo "Translations updated, compiling messages" ./compile-messages.sh @@ -22,7 +22,9 @@ if [ -d ./.git ]; then echo "Python files changed, restarting server" touch $TOUCHFILE fi + else + $MTN pull -k "" "mtn://$MTNURL?$MTNBRANCH" $MTN up 2>&1 | tee $TMP if grep "^mtn: \(add\|patch\|dropp\|updat\)\(ed\|ing\) 'i2p2www/translations/" "$TMP" >/dev/null ; then -- GitLab