mirror of
https://github.com/smxi/inxi.git
synced 2024-11-17 00:31:19 +00:00
Fixed small gawk bug, needed == rather than =. Nice to see gawk actually is clear, logical, and consistent. Unlike Bash.
This commit is contained in:
parent
82ae968eda
commit
6e30c9de1c
10
inxi
10
inxi
|
@ -1,8 +1,8 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
########################################################################
|
########################################################################
|
||||||
#### Script Name: inxi
|
#### Script Name: inxi
|
||||||
#### version: 0.5.32
|
#### version: 0.5.33
|
||||||
#### Date: November 14 2008
|
#### Date: November 18 2008
|
||||||
########################################################################
|
########################################################################
|
||||||
#### inxi is a fork of infobash 3.02, the original bash sys info script by locsmif
|
#### 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.
|
#### As time permits functionality improvements and recoding will occur.
|
||||||
|
@ -1267,7 +1267,7 @@ get_distro_lsb_data()
|
||||||
/^DISTRIB_ID/ {
|
/^DISTRIB_ID/ {
|
||||||
gsub(/^ +| +$/, "", $NF)
|
gsub(/^ +| +$/, "", $NF)
|
||||||
# this is needed because grep for "arch" is too loose to be safe
|
# this is needed because grep for "arch" is too loose to be safe
|
||||||
if ( $NF = "arch" ) {
|
if ( $NF == "arch" ) {
|
||||||
distroId = "Arch Linux"
|
distroId = "Arch Linux"
|
||||||
}
|
}
|
||||||
else if ( $NF != "n/a" ) {
|
else if ( $NF != "n/a" ) {
|
||||||
|
@ -1353,7 +1353,9 @@ get_graphics_glx_data()
|
||||||
s=""
|
s=""
|
||||||
i=flag=0
|
i=flag=0
|
||||||
for (i in arr) {
|
for (i in arr) {
|
||||||
if (flag++) s = s sep
|
if (flag++) {
|
||||||
|
s = s sep
|
||||||
|
}
|
||||||
s = s i
|
s = s i
|
||||||
}
|
}
|
||||||
return s
|
return s
|
||||||
|
|
Loading…
Reference in a new issue