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(/^ +| +$/, "")