From ef4fde450fcc0387223e43d52b3936aaa645f3b9 Mon Sep 17 00:00:00 2001 From: PatrickScheich <50054697+PatrickScheich@users.noreply.github.com> Date: Mon, 28 Sep 2020 21:40:41 +0200 Subject: [PATCH] comparison typo and script flow fix (#1599) Co-authored-by: Patrick Scheich --- home.admin/_background.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/home.admin/_background.sh b/home.admin/_background.sh index 2bcce1b14..fc581a2ee 100755 --- a/home.admin/_background.sh +++ b/home.admin/_background.sh @@ -107,11 +107,11 @@ do # execute only after setup when config exists if [ ${configExists} -eq 1 ]; then - publicIPChanged=$(/home/admin/config.scripts/internet.sh update-publicip | grep -c 'ip_changed=1') - + fi + # check if changed - elif [ ${publicIPChanged} -get 0 ]; then + if [ ${publicIPChanged} -gt 0 ]; then # refresh data source /mnt/hdd/raspiblitz.conf