fix pacman name conflict bug
change to type paclog-pkglist typo
This commit is contained in:
parent
02fff35f35
commit
e39cbbff32
9
neofetch
9
neofetch
|
@ -484,16 +484,9 @@ get_uptime() {
|
||||||
}
|
}
|
||||||
|
|
||||||
get_packages() {
|
get_packages() {
|
||||||
# Remove /usr/games from $PATH.
|
|
||||||
# This solves issues with neofetch opening the "pacman" game.
|
|
||||||
local PATH=":${PATH}:"
|
|
||||||
local PATH="${PATH/':/usr/games:'/:}"
|
|
||||||
local PATH="${PATH%:}"
|
|
||||||
local PATH="${PATH#:}"
|
|
||||||
|
|
||||||
case "$os" in
|
case "$os" in
|
||||||
"Linux" | "BSD" | "iPhone OS" | "Solaris")
|
"Linux" | "BSD" | "iPhone OS" | "Solaris")
|
||||||
type -p pacman >/dev/null && \
|
type -p paclog-pkglist >/dev/null && \
|
||||||
packages="$(pacman -Qq --color never | wc -l)"
|
packages="$(pacman -Qq --color never | wc -l)"
|
||||||
|
|
||||||
type -p dpkg >/dev/null && \
|
type -p dpkg >/dev/null && \
|
||||||
|
|
Reference in New Issue