Simplify err
This commit is contained in:
parent
9a31740184
commit
56325786d2
1 changed files with 4 additions and 3 deletions
7
neofetch
7
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
|
||||
|
||||
# }}}
|
||||
|
|
Loading…
Reference in a new issue