Fix for directories with spaces
This commit is contained in:
parent
ef29fa6e57
commit
6b43063ca1
1 changed files with 6 additions and 6 deletions
12
neofetch
12
neofetch
|
@ -1669,17 +1669,17 @@ get_packages() {
|
||||||
|
|
||||||
# Scoop environment throws errors if `tot scoop list` is used
|
# Scoop environment throws errors if `tot scoop list` is used
|
||||||
has scoop && {
|
has scoop && {
|
||||||
sdir=$(cygpath "${SCOOP}" 2>/dev/null)
|
sdir=$(cygpath "$SCOOP" 2>/dev/null)
|
||||||
sdir="${sdir:-~/scoop}"
|
sdir="${sdir:-$HOME/scoop}"
|
||||||
pkgs_h=1 dir "${sdir}/apps/*" && ((packages-=1))
|
pkgs_h=1 dir "$sdir"/apps/* && ((packages-=1))
|
||||||
manager=scoop-global
|
manager=scoop-global
|
||||||
sdir=$(cygpath "${SCOOP_GLOBAL}" 2>/dev/null)
|
sdir=$(cygpath "$SCOOP_GLOBAL" 2>/dev/null)
|
||||||
sdir="${sdir:-$ProgramData/scoop}"
|
sdir="${sdir:-$ProgramData/scoop}"
|
||||||
dir "${sdir}/apps/*"
|
dir "$sdir"/apps/*
|
||||||
}
|
}
|
||||||
|
|
||||||
# Count chocolatey packages.
|
# Count chocolatey packages.
|
||||||
has choco && dir "$ProgramData/chocolatey/lib/*"
|
has choco && dir "$ProgramData"/chocolatey/lib/*
|
||||||
;;
|
;;
|
||||||
|
|
||||||
Haiku)
|
Haiku)
|
||||||
|
|
Loading…
Reference in a new issue