mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-12-23 20:12:31 +00:00
Trim '$ascii_distro' variable
This commit is contained in:
3
neofetch
3
neofetch
@@ -2697,7 +2697,6 @@ colors () {
|
|||||||
|
|
||||||
"Windows"*)
|
"Windows"*)
|
||||||
setcolors 1 2 4 3
|
setcolors 1 2 4 3
|
||||||
ascii_distro="windows"
|
|
||||||
;;
|
;;
|
||||||
|
|
||||||
"Raspbian"* | *)
|
"Raspbian"* | *)
|
||||||
@@ -3281,7 +3280,7 @@ trap 'printf "\033[?25h"; clear; exit' 2
|
|||||||
|
|
||||||
# Distro detection
|
# Distro detection
|
||||||
getdistro
|
getdistro
|
||||||
[ -z "$ascii_distro" ] && ascii_distro="$distro"
|
[ -z "$ascii_distro" ] && ascii_distro="$(trim $distro)"
|
||||||
|
|
||||||
# Get colors and bold
|
# Get colors and bold
|
||||||
bold
|
bold
|
||||||
|
|||||||
Reference in New Issue
Block a user