From 6e30c9de1ce4c20eaa2cf58beed3ec62eb000a7c Mon Sep 17 00:00:00 2001 From: inxi-svn Date: Tue, 18 Nov 2008 21:05:21 +0000 Subject: [PATCH] Fixed small gawk bug, needed == rather than =. Nice to see gawk actually is clear, logical, and consistent. Unlike Bash. --- inxi | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/inxi b/inxi index 1213a3c..4c5462f 100755 --- a/inxi +++ b/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