Simplify ascii distro auto
This commit is contained in:
parent
ada00c9bb9
commit
793bcbcc7d
1 changed files with 3 additions and 4 deletions
7
neofetch
7
neofetch
|
@ -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"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue