Fixed small gawk bug, needed == rather than =. Nice to see gawk actually is clear, logical, and consistent. Unlike Bash.

This commit is contained in:
inxi-svn 2008-11-18 21:05:21 +00:00
parent 82ae968eda
commit 6e30c9de1c

10
inxi
View file

@ -1,8 +1,8 @@
#!/bin/bash
########################################################################
#### Script Name: inxi
#### version: 0.5.32
#### Date: November 14 2008
#### version: 0.5.33
#### Date: November 18 2008
########################################################################
#### inxi is a fork of infobash 3.02, the original bash sys info script by locsmif
#### As time permits functionality improvements and recoding will occur.
@ -1267,7 +1267,7 @@ get_distro_lsb_data()
/^DISTRIB_ID/ {
gsub(/^ +| +$/, "", $NF)
# this is needed because grep for "arch" is too loose to be safe
if ( $NF = "arch" ) {
if ( $NF == "arch" ) {
distroId = "Arch Linux"
}
else if ( $NF != "n/a" ) {
@ -1353,7 +1353,9 @@ get_graphics_glx_data()
s=""
i=flag=0
for (i in arr) {
if (flag++) s = s sep
if (flag++) {
s = s sep
}
s = s i
}
return s