From b403e74fd590202582e9f99e30b0cd74486c8f4e Mon Sep 17 00:00:00 2001
From: str4d <str4d@mail.i2p>
Date: Thu, 29 Aug 2013 06:57:23 +0000
Subject: [PATCH] Fixed detection of Python file changes

---
 site-updater-i2hq.sh | 2 +-
 site-updater.sh      | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/site-updater-i2hq.sh b/site-updater-i2hq.sh
index 51b9357e8..b12c2d23f 100755
--- a/site-updater-i2hq.sh
+++ b/site-updater-i2hq.sh
@@ -9,7 +9,7 @@ if [ $? -eq 0 ]; then
   ./compile-messages-i2hq.sh
 fi
 
-cat $TMP | grep "^mtn: updating 'i2p2www/.*/.*\.py" >/dev/null
+cat $TMP | grep "^mtn: updating 'i2p2www/.*\.py\|^mtn: updating 'i2p2www/.*/.*\.py" >/dev/null
 if [ $? -eq 0 ]; then
   echo "Python files changed, restarting server"
   touch /tmp/2fcd2f17-c293-4f77-b4c9-9b266ba70daa
diff --git a/site-updater.sh b/site-updater.sh
index 63851662c..d5366eaf0 100755
--- a/site-updater.sh
+++ b/site-updater.sh
@@ -9,7 +9,7 @@ if [ $? -eq 0 ]; then
   ./compile-messages.sh
 fi
 
-cat $TMP | grep "^mtn: updating 'i2p2www/.*/.*\.py" >/dev/null
+cat $TMP | grep "^mtn: updating 'i2p2www/.*\.py\|^mtn: updating 'i2p2www/.*/.*\.py" >/dev/null
 if [ $? -eq 0 ]; then
   echo "Python files changed, restarting server"
   touch /tmp/2fcd2f17-c293-4f77-b4c9-9b266ba70daa
-- 
GitLab