line up the lines in the update scripts so they're a little easier to compare side-by-side
This commit is contained in:
@ -9,8 +9,8 @@ TMP=$(mktemp XXXXXXXXXX)
|
|||||||
trap 'rm -f $TMP;exit' 0 1 2 15
|
trap 'rm -f $TMP;exit' 0 1 2 15
|
||||||
|
|
||||||
if [ -d ./.git ]; then
|
if [ -d ./.git ]; then
|
||||||
#$MTN pull -k "" "mtn://$MTNURL?$MTNBRANCH"
|
|
||||||
git pull origin master 2>&1 | tee $TMP
|
git pull origin master 2>&1 | tee $TMP
|
||||||
|
|
||||||
if grep "i2p2www/translations/" "$TMP" >/dev/null ; then
|
if grep "i2p2www/translations/" "$TMP" >/dev/null ; then
|
||||||
echo "Translations updated, compiling messages"
|
echo "Translations updated, compiling messages"
|
||||||
./compile-messages.sh
|
./compile-messages.sh
|
||||||
@ -22,7 +22,9 @@ if [ -d ./.git ]; then
|
|||||||
echo "Python files changed, restarting server"
|
echo "Python files changed, restarting server"
|
||||||
touch $TOUCHFILE
|
touch $TOUCHFILE
|
||||||
fi
|
fi
|
||||||
|
|
||||||
else
|
else
|
||||||
|
|
||||||
$MTN pull -k "" "mtn://$MTNURL?$MTNBRANCH"
|
$MTN pull -k "" "mtn://$MTNURL?$MTNBRANCH"
|
||||||
$MTN up 2>&1 | tee $TMP
|
$MTN up 2>&1 | tee $TMP
|
||||||
if grep "^mtn: \(add\|patch\|dropp\|updat\)\(ed\|ing\) 'i2p2www/translations/" "$TMP" >/dev/null ; then
|
if grep "^mtn: \(add\|patch\|dropp\|updat\)\(ed\|ing\) 'i2p2www/translations/" "$TMP" >/dev/null ; then
|
||||||
|
Reference in New Issue
Block a user