Use bash array in get_position script

This commit is contained in:
Keith Whyte 2020-05-07 22:12:27 +02:00
parent 7643099f6f
commit 305998cf65

View file

@ -3,7 +3,7 @@
RHIZO_SCRIPT="/home/rhizomatica/bin" RHIZO_SCRIPT="/home/rhizomatica/bin"
. $RHIZO_SCRIPT/vars.sh . $RHIZO_SCRIPT/vars.sh
n=0 n=0
for bts in $BTS0 $BTS1 $BTS2; do for bts in "${BTS_MASTER[@]}" ; do
echo "BTS $bts:"; echo "BTS $bts:";
let "n++" let "n++"
#ssh root@$bts "/etc/init.d/gpsd stop ; sleep 1 ;/etc/init.d/gpsd start; sleep 1" #ssh root@$bts "/etc/init.d/gpsd stop ; sleep 1 ;/etc/init.d/gpsd start; sleep 1"