-rw-r--r-- | doc/tag-photo.bash | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/tag-photo.bash b/doc/tag-photo.bash index 83f10fd..5917f12 100644 --- a/doc/tag-photo.bash +++ b/doc/tag-photo.bash | |||
@@ -44,7 +44,7 @@ END { | |||
44 | 44 | ||
45 | [[ -z "$APS" ]] && { echo "no access points" ; exit ; } | 45 | [[ -z "$APS" ]] && { echo "no access points" ; return 2>/dev/null || exit ; } |
46 | WL="$(wps_locate "$APS")" | 46 | WL="$(wps_locate "$APS")" |
47 | [[ -z "$WL" ]] && { echo "couldn't find location" ; exit ; } | 47 | [[ -z "$WL" ]] && { echo "couldn't find location" ; return 2>/dev/null || exit ; } |
48 | eval "$WL" | 48 | eval "$WL" |
49 | [[ -z "$wl_latitude" || -z "$wl_longitude" || -z "$wl_hpe" ]] && { echo "invalid location ($WL)"; exit; } | 49 | [[ -z "$wl_latitude" || -z "$wl_longitude" || -z "$wl_hpe" ]] && { echo "invalid location ($WL)"; return 2>/dev/null || exit; } |
50 | [[ "${wl_latitude:0:1}" = '-' ]] && wl_latitude="${wl_latitude:1}" wl_latitude_ref=S || wl_latitude_ref=N | 50 | [[ "${wl_latitude:0:1}" = '-' ]] && wl_latitude="${wl_latitude:1}" wl_latitude_ref=S || wl_latitude_ref=N |