Fix wrong test in cronjob-update-packages-list.

This commit is contained in:
Darren 'Tadgy' Austin 2024-06-04 13:23:49 +01:00
commit a7e218c666

View file

@ -16,7 +16,7 @@ case "$ID" in
;;
'slackware')
/usr/sbin/slackpkg -batch=on -default_answer=y generate-template "$(hostname --short)" >/dev/null
[[ ! -e "/etc/slackpkg/templates/$(hostname --short).template" ]] && ln -sf "/etc/slackpkg/templates/$(hostname --short).template" /etc/pkglist
[[ ! -e /etc/pkglist ]] && ln -sf "/etc/slackpkg/templates/$(hostname --short).template" /etc/pkglist
;;
'void')
/usr/sbin/xbps-query -l | awk '{ print $2 }' | rev | cut -d- -f2- | rev >/etc/pkglist