mirror of
https://github.com/smxi/inxi.git
synced 2025-01-19 00:47:47 +00:00
new version, tarball. Bug fix, overly loose regex removed na from country/state/city strings,
like nashville.
This commit is contained in:
parent
62b72f3472
commit
fd376c3009
6
inxi
6
inxi
|
@ -1,8 +1,8 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
########################################################################
|
########################################################################
|
||||||
#### Script Name: inxi
|
#### Script Name: inxi
|
||||||
#### Version: 1.9.5
|
#### Version: 1.9.6
|
||||||
#### Date: May 18 2013
|
#### Date: May 19 2013
|
||||||
#### Patch Number: 00
|
#### Patch Number: 00
|
||||||
########################################################################
|
########################################################################
|
||||||
#### SPECIAL THANKS
|
#### SPECIAL THANKS
|
||||||
|
@ -8132,7 +8132,7 @@ get_weather_data()
|
||||||
# some lines might be empty, so ignore those
|
# some lines might be empty, so ignore those
|
||||||
if (data !~ /^<[^>]+>$/ ) {
|
if (data !~ /^<[^>]+>$/ ) {
|
||||||
returnData=gensub(/(.*>)([^<]*)(<.*)/, "\\2", 1, data)
|
returnData=gensub(/(.*>)([^<]*)(<.*)/, "\\2", 1, data)
|
||||||
gsub(/^[[:space:]]+|[[:space:]]+$|NA|N\/A/, "", returnData)
|
gsub(/^[[:space:]]+|[[:space:]]+$|^NA$|^N\/A$/, "", returnData)
|
||||||
}
|
}
|
||||||
return returnData
|
return returnData
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,3 +1,16 @@
|
||||||
|
=====================================================================================
|
||||||
|
Version: 1.9.6
|
||||||
|
Patch Version: 00
|
||||||
|
Script Date: May 19 2013
|
||||||
|
-----------------------------------
|
||||||
|
Changes:
|
||||||
|
-----------------------------------
|
||||||
|
new version, tarball. Bug fix, overly loose regex removed na from country/state/city strings,
|
||||||
|
like nashville.
|
||||||
|
|
||||||
|
-----------------------------------
|
||||||
|
-- Harald Hope - Sun, 19 May 2013 20:06:44 -0700
|
||||||
|
|
||||||
=====================================================================================
|
=====================================================================================
|
||||||
Version: 1.9.5
|
Version: 1.9.5
|
||||||
Patch Version: 00
|
Patch Version: 00
|
||||||
|
|
Loading…
Reference in a new issue