mirror of
https://github.com/endeavouros-team/eos-bash-shared.git
synced 2026-06-13 01:34:36 +00:00
[eos-bash-shared] show-location-info: fixed case with no connection
This commit is contained in:
+2
-1
@@ -120,7 +120,8 @@ Main() {
|
||||
|
||||
# get and show the wanted location info
|
||||
|
||||
local output="$(LANG=C curl --fail -Lsm $timeout $url/$item)"
|
||||
local output=""
|
||||
output="$(LANG=C curl --fail -Lsm $timeout $url/$item)"
|
||||
|
||||
if [ $? -eq 0 ] ; then
|
||||
if [ "$tolower" = "yes" ] ; then
|
||||
|
||||
Reference in New Issue
Block a user