Shellcheck corrections.

This commit is contained in:
Darren 'Tadgy' Austin 2026-04-04 13:06:24 +00:00
commit 2d888daf91

View file

@ -7,6 +7,7 @@
}
# Source system info.
# shellcheck disable=SC1091
. /etc/os-release
# Create package list depending on system type.
@ -20,7 +21,7 @@ case "$ID" in
'slackware')
slackpkg -batch=on -default_answer=y generate-template "$(hostname --short)" >/dev/null
[[ -L /etc/pkglist ]] && rm -f /etc/pkglist
ls -1 /var/log/packages/ | rev | cut -d- -f4- | rev >/etc/pkglist
printf "%s\\n" /var/log/packages/* | rev | cut -d- -f4- | rev >/etc/pkglist
;;
'void')
xbps-query -l | awk '{ print $2 }' | rev | cut -d- -f2- | rev >/etc/pkglist