Fix for directories with spaces

This commit is contained in:
Ross Smith II 2021-07-16 07:19:58 -07:00 committed by GitHub
parent ef29fa6e57
commit 6b43063ca1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1669,17 +1669,17 @@ get_packages() {
# Scoop environment throws errors if `tot scoop list` is used
has scoop && {
sdir=$(cygpath "${SCOOP}" 2>/dev/null)
sdir="${sdir:-~/scoop}"
pkgs_h=1 dir "${sdir}/apps/*" && ((packages-=1))
sdir=$(cygpath "$SCOOP" 2>/dev/null)
sdir="${sdir:-$HOME/scoop}"
pkgs_h=1 dir "$sdir"/apps/* && ((packages-=1))
manager=scoop-global
sdir=$(cygpath "${SCOOP_GLOBAL}" 2>/dev/null)
sdir=$(cygpath "$SCOOP_GLOBAL" 2>/dev/null)
sdir="${sdir:-$ProgramData/scoop}"
dir "${sdir}/apps/*"
dir "$sdir"/apps/*
}
# Count chocolatey packages.
has choco && dir "$ProgramData/chocolatey/lib/*"
has choco && dir "$ProgramData"/chocolatey/lib/*
;;
Haiku)