We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e55a152 commit a769693Copy full SHA for a769693
1 file changed
functions/get_loc.sh
@@ -15,8 +15,8 @@ function get_loc {
15
16
case "${LOC_PROVIDER}" in
17
"termux")
18
- LOC_JSON_PROVIDER=${LOC_JSON_PROVIDER:-"termux-location -p gps"}
19
- LOC_JSON=$(LOC_JSON_PROVIDER)
+ LOC_JSON_PROVIDER=${LOC_JSON_PROVIDER:-"termux-location -p gps"}
+ LOC_JSON=$($LOC_JSON_PROVIDER)
20
#
21
LAT=`echo $LOC_JSON | jq -r '.latitude'`
22
LON=`echo $LOC_JSON | jq -r '.longitude'`
0 commit comments