mirror of
https://github.com/smxi/inxi.git
synced 2024-11-17 00:31:19 +00:00
more fine tuning of some gawk cleanup of os/lsb-release data, new tarball, no new version, this is more for future proofing at this point
This commit is contained in:
parent
7f96ace5bf
commit
2642ac39c7
6
inxi
6
inxi
|
@ -3755,7 +3755,7 @@ get_lsb_os_release_data()
|
||||||
}
|
}
|
||||||
# clean out unwanted characters
|
# clean out unwanted characters
|
||||||
{
|
{
|
||||||
gsub(/\"/,"", $0 )
|
gsub(/\\|\"|[:\47]/,"", $0 )
|
||||||
gsub(/^[[:space:]]+|[[:space:]]+$/, "", $2 )
|
gsub(/^[[:space:]]+|[[:space:]]+$/, "", $2 )
|
||||||
gsub(/^[[:space:]]+|[[:space:]]+$/, "", $1 )
|
gsub(/^[[:space:]]+|[[:space:]]+$/, "", $1 )
|
||||||
}
|
}
|
||||||
|
@ -3809,7 +3809,7 @@ s if ( $2 != "n/a" ) {
|
||||||
}
|
}
|
||||||
# clean out unwanted characters
|
# clean out unwanted characters
|
||||||
{
|
{
|
||||||
gsub(/\"/,"", $0 )
|
gsub(/\\|\"|[:\47]/,"", $0 )
|
||||||
gsub(/^[[:space:]]+|[[:space:]]+$/, "", $2 )
|
gsub(/^[[:space:]]+|[[:space:]]+$/, "", $2 )
|
||||||
gsub(/^[[:space:]]+|[[:space:]]+$/, "", $1 )
|
gsub(/^[[:space:]]+|[[:space:]]+$/, "", $1 )
|
||||||
}
|
}
|
||||||
|
@ -3840,7 +3840,7 @@ s if ( $2 != "n/a" ) {
|
||||||
}
|
}
|
||||||
# clean out unwanted characters
|
# clean out unwanted characters
|
||||||
{
|
{
|
||||||
gsub(/\"/,"", $0 )
|
gsub(/\\|\"|[:\47]/,"", $0 )
|
||||||
gsub(/^[[:space:]]+|[[:space:]]+$/, "", $2 )
|
gsub(/^[[:space:]]+|[[:space:]]+$/, "", $2 )
|
||||||
gsub(/^[[:space:]]+|[[:space:]]+$/, "", $1 )
|
gsub(/^[[:space:]]+|[[:space:]]+$/, "", $1 )
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue