mirror of
https://github.com/smxi/inxi.git
synced 2024-11-16 16:21:39 +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
|
||||
########################################################################
|
||||
#### 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
|
||||
|
|
Loading…
Reference in a new issue