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:
inxi-svn 2012-12-20 20:57:36 +00:00
parent 7f96ace5bf
commit 2642ac39c7

6
inxi
View file

@ -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 )
} }