From 305998cf6536b51f40129a765667fa95dc459d16 Mon Sep 17 00:00:00 2001 From: Keith Whyte Date: Thu, 7 May 2020 22:12:27 +0200 Subject: [PATCH] Use bash array in get_position script --- modules/rhizo_base/files/bin/get_position.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/rhizo_base/files/bin/get_position.sh b/modules/rhizo_base/files/bin/get_position.sh index 05f8df6..518bebb 100755 --- a/modules/rhizo_base/files/bin/get_position.sh +++ b/modules/rhizo_base/files/bin/get_position.sh @@ -3,7 +3,7 @@ RHIZO_SCRIPT="/home/rhizomatica/bin" . $RHIZO_SCRIPT/vars.sh n=0 -for bts in $BTS0 $BTS1 $BTS2; do +for bts in "${BTS_MASTER[@]}" ; do echo "BTS $bts:"; let "n++" #ssh root@$bts "/etc/init.d/gpsd stop ; sleep 1 ;/etc/init.d/gpsd start; sleep 1"