From 8159e98e720dfecb64c90c1d12f135b1cb4619b3 Mon Sep 17 00:00:00 2001 From: Marco Ochse Date: Thu, 5 Oct 2017 22:34:41 +0000 Subject: [PATCH] tweaking and testing --- update.sh | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/update.sh b/update.sh index fff0d3e9..26d4ff13 100755 --- a/update.sh +++ b/update.sh @@ -58,8 +58,14 @@ mySITES=$1 } function fuSELFUPDATE () { - echo "### Now checking for newer update script ..." + echo "### Now checking for newer files in repository ..." git fetch + myREMOTESTAT=$(git status | grep -c "up-to-date") + if [ "$myREMOTESTAT" != "0" ]; + then + echo "###### $myBLUE"No updates found in repository."$myWHITE" + return + fi myRESULT=$(git diff --name-only origin/autoupdate | grep update.sh) myLOCALSTAT=$(git status -uno | grep -c update.sh) if [ "$myRESULT" == "update.sh" ]; @@ -92,6 +98,7 @@ fi echo "### Now running T-Pot update script." echo + fuCHECKINET "https://index.docker.io https://github.com https://pypi.python.org https://ubuntu.com" echo @@ -147,4 +154,4 @@ echo "### Now starting T-Pot service" systemctl start tpot echo -echo "### Done. If all services run correctly (dps.sh) you should perform a reboot." +echo "### Done."