Skip to content

Commit a769693

Browse files
committed
fixes execution of LOC_JSON_PROVIDER
1 parent e55a152 commit a769693

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

functions/get_loc.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ function get_loc {
1515

1616
case "${LOC_PROVIDER}" in
1717
"termux")
18-
LOC_JSON_PROVIDER=${LOC_JSON_PROVIDER:-"termux-location -p gps"}
19-
LOC_JSON=$(LOC_JSON_PROVIDER)
18+
LOC_JSON_PROVIDER=${LOC_JSON_PROVIDER:-"termux-location -p gps"}
19+
LOC_JSON=$($LOC_JSON_PROVIDER)
2020
#
2121
LAT=`echo $LOC_JSON | jq -r '.latitude'`
2222
LON=`echo $LOC_JSON | jq -r '.longitude'`

0 commit comments

Comments
 (0)