From bf5f72673f0dfabebeada829b4e67a95ffea8fcd Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Mon, 14 Jun 2021 08:30:07 -0400 Subject: [PATCH] changed sed ' to " to expand the variables --- groundstation/fox-startup.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/groundstation/fox-startup.sh b/groundstation/fox-startup.sh index ae2234e8..3f51d0a9 100755 --- a/groundstation/fox-startup.sh +++ b/groundstation/fox-startup.sh @@ -27,12 +27,13 @@ if [ ! -f "$FILE" ]; then echo "Enter your CALLSIGN. If you don't have a callsign, enter a text string that will be displayed on the FoxTelem leader board at https://amsat.org/tlm" read callsign - sudo sed -i 's/callsign=NONE/callsign=$callsign/g' /home/pi/Documents/FITB/FoxTelem.properties + sudo sed -i "s/callsign=NONE/callsign=$callsign/g" /home/pi/Documents/FITB/FoxTelem.properties + echo echo "Enter your Maidenhead grid square. It is two letters followed by two numbers followed by two letters with no spaces. If you don't know your gridsquare, you can look it up here https://dxcluster.ha8tks.hu/hamgeocoding/" read grid - sudo sed -i 's/maidenhead=XX00xx/maidenhead=$grid/g' /home/pi/Documents/FITB/FoxTelem.properties - + sudo sed -i "s/maidenhead=XX00xx/maidenhead=$grid/g" /home/pi/Documents/FITB/FoxTelem.properties + echo elif [ "$ANS" = "2" ]; then