Fix shellcheck errors
This commit is contained in:
parent
15c2b33575
commit
ef29fa6e57
1 changed files with 4 additions and 6 deletions
10
neofetch
10
neofetch
|
@ -1664,24 +1664,22 @@ get_packages() {
|
|||
ProgramData=$(cygpath --folder 0x0023 2>/dev/null)
|
||||
if [[ -z "$ProgramData" ]]; then
|
||||
mount=$(awk '/^C:\s/ {print $2}' /proc/mounts 2>/dev/null)
|
||||
ProgramData="${ProgramData:-${mount:-/cygdrive/c}/ProgramData}"
|
||||
ProgramData="${mount:-/cygdrive/c}/ProgramData"
|
||||
fi
|
||||
|
||||
# Scoop environment throws errors if `tot scoop list` is used
|
||||
# shellcheck disable=SC2086
|
||||
has scoop && {
|
||||
sdir=$(cygpath "${SCOOP}" 2>/dev/null)
|
||||
sdir="${sdir:-~/scoop}"
|
||||
pkgs_h=1 dir ${sdir}/apps/* && ((packages-=1))
|
||||
pkgs_h=1 dir "${sdir}/apps/*" && ((packages-=1))
|
||||
manager=scoop-global
|
||||
sdir=$(cygpath "${SCOOP_GLOBAL}" 2>/dev/null)
|
||||
sdir="${sdir:-$ProgramData/scoop}"
|
||||
dir ${sdir}/apps/*
|
||||
dir "${sdir}/apps/*"
|
||||
}
|
||||
|
||||
# Count chocolatey packages.
|
||||
# shellcheck disable=SC2086
|
||||
has choco && dir $ProgramData/chocolatey/lib/*
|
||||
has choco && dir "$ProgramData/chocolatey/lib/*"
|
||||
;;
|
||||
|
||||
Haiku)
|
||||
|
|
Loading…
Add table
Reference in a new issue