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
|
||||
getdistro
|
||||
case "${ascii_distro:-auto}" in
|
||||
"auto") ascii_distro="$(trim "$distro")" ;;
|
||||
esac
|
||||
[ "${ascii_distro:-auto}" == "auto" ] && \
|
||||
ascii_distro="$(trim "$distro")"
|
||||
|
||||
# Get colors and bold
|
||||
bold
|
||||
|
@ -3073,7 +3072,7 @@ main() {
|
|||
# Show error messages
|
||||
[ "$verbose" == "on" ] && printf "%s" "$err"
|
||||
|
||||
# Reset exit status of the tests above.
|
||||
# Reset exit status of the tests above
|
||||
printf "%s"
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue