Simplify err

This commit is contained in:
Dylan Araps 2016-08-12 16:45:36 +10:00
parent 9a31740184
commit 56325786d2
1 changed files with 4 additions and 3 deletions

View File

@ -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
# }}}