Allow user customization of map locations via SXMO_GPSLOCATIONSFILES

This commit is contained in:
Miles Alan 2020-06-27 17:57:19 -05:00
parent b80ce9e872
commit 00e09e6897

View file

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