mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-10-04 09:08:38 +00:00
Simplify ascii distro auto
This commit is contained in:
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"
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user