Simplify ascii distro auto

This commit is contained in:
Dylan Araps 2016-08-13 19:28:21 +10:00
parent ada00c9bb9
commit 793bcbcc7d

View file

@ -2981,9 +2981,8 @@ main() {
# Distro detection # Distro detection
getdistro getdistro
case "${ascii_distro:-auto}" in [ "${ascii_distro:-auto}" == "auto" ] && \
"auto") ascii_distro="$(trim "$distro")" ;; ascii_distro="$(trim "$distro")"
esac
# Get colors and bold # Get colors and bold
bold bold
@ -3073,7 +3072,7 @@ main() {
# Show error messages # Show error messages
[ "$verbose" == "on" ] && printf "%s" "$err" [ "$verbose" == "on" ] && printf "%s" "$err"
# Reset exit status of the tests above. # Reset exit status of the tests above
printf "%s" printf "%s"
} }