From 56325786d2c7aef1677b1ebde3ccd62790432552 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Fri, 12 Aug 2016 16:45:36 +1000 Subject: [PATCH] Simplify err --- neofetch | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/neofetch b/neofetch index 1c2b50d7..56715639 100755 --- a/neofetch +++ b/neofetch @@ -2483,7 +2483,8 @@ trim() { # Error {{{ err () { - err+="$(color 1)[!]$(color fg) $1 \n" + err+="$(color 1)[!]$(color fg) $1 +" } # }}} @@ -2581,6 +2582,7 @@ case "$@" in esac [ "${config:-on}" == "on" ] && getconfig 2>/dev/null + # }}} # Progress Bars {{{ @@ -3069,8 +3071,7 @@ fi # Show error messages if [ "$verbose" == "on" ]; then - printf "%s" "${err//\\n/ -}" + printf "%s" "$err" fi # }}}