mirror of
https://github.com/smxi/inxi.git
synced 2024-11-16 16:21:39 +00:00
Fixed obscure bug in gawk for gfx data in get gfx
This commit is contained in:
parent
a9e0462c43
commit
d1694d1374
6
inxi
6
inxi
|
@ -1,7 +1,7 @@
|
|||
#!/bin/bash
|
||||
########################################################################
|
||||
#### Script Name: inxi
|
||||
#### version: 0.1.42
|
||||
#### version: 0.1.43
|
||||
#### Date: October 29 2008
|
||||
########################################################################
|
||||
#### inxi is a fork of infobash, the original bash sys info script by locsmif
|
||||
|
@ -928,7 +928,7 @@ get_graphics_data()
|
|||
XVER="$XVENDOR $XVERNUM"
|
||||
|
||||
IFS=$'\n'
|
||||
A_GFX_DATA=( $( glxinfo | gawk -F ': ' '
|
||||
GLX=($(glxinfo | gawk -F ': ' '
|
||||
function join(arr, sep) {
|
||||
s=""
|
||||
i=flag=0
|
||||
|
@ -958,7 +958,7 @@ get_graphics_data()
|
|||
END {
|
||||
printf("%s\n%s\n%s\n", join(a,", "), join(b,", "), join(c,", "))
|
||||
}
|
||||
' ) )
|
||||
'))
|
||||
IFS="$OIFS"
|
||||
GLXR="${A_GFX_DATA[0]}"
|
||||
GLXV="${A_GFX_DATA[1]}"
|
||||
|
|
Loading…
Reference in a new issue