From 71e22d842edd4efda5d1c048c7201e97bc4386cd Mon Sep 17 00:00:00 2001 From: Michael Straube Date: Sat, 8 Dec 2018 15:51:21 +0100 Subject: [PATCH] Misc: Use comma syntax in awk to print spaces --- neofetch | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/neofetch b/neofetch index 38477f0a..4770a157 100755 --- a/neofetch +++ b/neofetch @@ -989,8 +989,8 @@ get_distro() { "Solaris") case "$distro_shorthand" in - "on" | "tiny") distro="$(awk 'NR==1{print $1 " " $3;}' /etc/release)" ;; - *) distro="$(awk 'NR==1{print $1 " " $2 " " $3;}' /etc/release)" ;; + "on" | "tiny") distro="$(awk 'NR==1 {print $1,$3}' /etc/release)" ;; + *) distro="$(awk 'NR==1 {print $1,$2,$3}' /etc/release)" ;; esac distro="${distro/\(*}" ;; @@ -2862,13 +2862,13 @@ END ;; "deepin-terminal"*) - term_font="$(awk -F '=' '/font=/ {a=$2} /font_size/ {b=$2} END {print a " " b}' \ + term_font="$(awk -F '=' '/font=/ {a=$2} /font_size/ {b=$2} END {print a,b}' \ "${XDG_CONFIG_HOME}/deepin/deepin-terminal/config.conf")" ;; "GNUstep_Terminal") term_font="$(awk -F '>|<' '/>TerminalFontTerminalFontSizeTerminalFontSize