Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions geo/core/functions
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ get_current_location() {
local full_req="${url}?browser=true&sensor=true${query}"

current_location_json="$(getter ${full_req})"
if echo "$current_location_json" | grep -qi '<title>error'; then
current_location_json=""
fi
fi
}

Expand Down
2 changes: 1 addition & 1 deletion geo/platform/mac/functions
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ get_wifi_access_points() {
if [ -n "$wifi_info" ]; then

wifi_points=`$airport -s -x | egrep 'BSSID|>CHANNEL<|NOISE|SSID_STR|RSSI' --after-context=1 \
| egrep -v "AGE|array|WPA|80211" | tr '\n' ' ' | tr -d '\t' \
| head -374 | egrep -v "AGE|array|WPA|80211" | tr '\n' ' ' | tr -d '\t' \
| sed -e 's/<[^>]*>//g' \
-e 's/ -- /, /g' \
-e 'y/:/-/' \
Expand Down