From 75748d14ab170319ec02c8e555db621fc5753e6d Mon Sep 17 00:00:00 2001 From: Jan-Tarek Butt Date: Sat, 12 Aug 2017 21:23:49 +0200 Subject: [PATCH] gluon-geolocator: geolocator.sh use if/fi instead of {} --- .../gluon-geolocator/files/lib/gluon/geolocator/geolocator.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package/gluon-geolocator/files/lib/gluon/geolocator/geolocator.sh b/package/gluon-geolocator/files/lib/gluon/geolocator/geolocator.sh index 48c4453b..ce319d8c 100755 --- a/package/gluon-geolocator/files/lib/gluon/geolocator/geolocator.sh +++ b/package/gluon-geolocator/files/lib/gluon/geolocator/geolocator.sh @@ -55,11 +55,11 @@ if [ ! -f $TIME_STAMP ] || [ $(( $(date +%s) - $(cat $TIME_STAMP) )) -gt $(( $(u Get_geolocation_info [ $? -eq 1 ] && Clean_pid #ceck if static location true or not - [ "$(uci get "${GLC}".static_location)" -eq 0 ] && { + if [ "$(uci get "${GLC}".static_location)" -eq 0 ]; then uci set "${LOC}".latitude="$LAT" uci set "${LOC}".longitude="$LON" uci commit gluon-node-info - } + fi date +%s > $TIME_STAMP fi Clean_pid