Fix Some Bugs
This commit is contained in:
parent
62952a1f56
commit
7e176284a7
2 changed files with 5 additions and 2 deletions
7
neofetch
7
neofetch
|
@ -102,8 +102,10 @@ get_distro() {
|
||||||
|
|
||||||
elif type -p tazpkg >/dev/null; then
|
elif type -p tazpkg >/dev/null; then
|
||||||
distro="SliTaz $(< /etc/slitaz-release)"
|
distro="SliTaz $(< /etc/slitaz-release)"
|
||||||
|
|
||||||
elif type -p kpm > /dev/null; then
|
elif type -p kpm > /dev/null; then
|
||||||
distro="KSLinux"
|
distro="KSLinux"
|
||||||
|
|
||||||
elif [[ -d "/system/app/" && -d "/system/priv-app" ]]; then
|
elif [[ -d "/system/app/" && -d "/system/priv-app" ]]; then
|
||||||
distro="Android $(getprop ro.build.version.release)"
|
distro="Android $(getprop ro.build.version.release)"
|
||||||
|
|
||||||
|
@ -435,6 +437,7 @@ get_packages() {
|
||||||
|
|
||||||
type -p dpkg >/dev/null && \
|
type -p dpkg >/dev/null && \
|
||||||
packages="$((packages+=$(dpkg --get-selections | grep -cv deinstall$)))"
|
packages="$((packages+=$(dpkg --get-selections | grep -cv deinstall$)))"
|
||||||
|
|
||||||
type -p kpm >/dev/null && \
|
type -p kpm >/dev/null && \
|
||||||
packages="$((packages+=$(kpm --get-selections | grep -cv deinstall$)))"
|
packages="$((packages+=$(kpm --get-selections | grep -cv deinstall$)))"
|
||||||
|
|
||||||
|
@ -3077,7 +3080,7 @@ get_distro_colors() {
|
||||||
|
|
||||||
"KSLinux"*)
|
"KSLinux"*)
|
||||||
set_colors 4 7 1
|
set_colors 4 7 1
|
||||||
ascii_file="ks"
|
ascii_file="kslinux"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
"Kubuntu"*)
|
"Kubuntu"*)
|
||||||
|
@ -3385,7 +3388,7 @@ get_distro_colors() {
|
||||||
ascii_file="void"
|
ascii_file="void"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
*"[Windows 10]"* | *"on Windows 10"* | "Windows 8"* | "Windows 10"*)
|
*"[Windows 10]"* | *"on Windows 10"* | "Windows 8"* | "Windows 10"* | "windows10" | "windows8" )
|
||||||
set_colors 6 7
|
set_colors 6 7
|
||||||
ascii_file="windows10"
|
ascii_file="windows10"
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Reference in a new issue