diff --git a/scripts/core/sxmo_gpsutil.sh b/scripts/core/sxmo_gpsutil.sh index 679961b..a979b40 100755 --- a/scripts/core/sxmo_gpsutil.sh +++ b/scripts/core/sxmo_gpsutil.sh @@ -1,5 +1,5 @@ #!/usr/bin/env sh -SXMO_GPSLOCATIONSFILE="/usr/share/sxmo/places_for_gps.tsv" +[ -z "$SXMO_GPSLOCATIONSFILES" ] && SXMO_GPSLOCATIONSFILES="/usr/share/sxmo/places_for_gps.tsv" CTILESIZE=256 CLN2=0.693147180559945309417 CPI=3.14159265358979323846 @@ -181,7 +181,7 @@ menulocations() { CHOICE="$( printf %b "$( echo "Close Menu"; - cat "$SXMO_GPSLOCATIONSFILE"; + echo "$SXMO_GPSLOCATIONSFILES" | tr "," "\n" | xargs cat )" | grep -vE '^#' | sed "s/\t/: /g" |