changed sed ' to " to expand the variables

pull/101/head
alanbjohnston 5 years ago committed by GitHub
parent e438c41444
commit bf5f72673f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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

Loading…
Cancel
Save

Powered by TurnKey Linux.