From f8e193103de9b63ca58bdac75a7aa194d635dbe9 Mon Sep 17 00:00:00 2001 From: inxi-svn Date: Thu, 6 Nov 2008 21:03:19 +0000 Subject: [PATCH] fixed a few small errors --- inxi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/inxi b/inxi index 9e64cdb..5e33a17 100755 --- a/inxi +++ b/inxi @@ -301,7 +301,8 @@ remove_erroneous_chars() { ## RS is input record separator ## gsub is substitute; - gawk 'BEGIN { RS="" } { + gawk ' + BEGIN { RS="" } { gsub(/\n$/,"") ## (newline; end of string) with (nothing) gsub(/\n/," "); ## (newline) with (space) gsub(/^ *| *$/, "") ## (pipe char) with (nothing) @@ -964,8 +965,7 @@ get_distro_data() # Debian pure should fall through here distro_file="issue" distro=$( gawk ' - BEGIN - { RS="" } { + BEGIN { RS="" } { gsub(/\\[a-z]/, "") gsub(/,/, " ") gsub(/^ +| +$/, "")