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