Add Ubuntu to upgrade function.

This commit is contained in:
Bartek Stalewski 2024-12-29 00:26:00 +01:00
parent d9469207c0
commit 3308c8d735
No known key found for this signature in database

View file

@ -80,8 +80,9 @@ function upgrade() {
rm -rf /var/cache/pkg/* /usr/ports/distfiles/* rm -rf /var/cache/pkg/* /usr/ports/distfiles/*
pkg audit -F pkg audit -F
else else
case $(lsb_release -si) in case $(lsb_release -si 2>/dev/null) in
Gentoo) eix-sync && eix-update && emerge -avuNDU @world ;; Gentoo) eix-sync && eix-update && emerge -avuNDU @world ;;
Ubuntu) apt update && apt upgrade ;;
VoidLinux) xbps-install -Su && xbps-remove -RoO && xlocate -S && du -sh /var/cache/xbps && rm -rf /var/cache/xbps/* ;; VoidLinux) xbps-install -Su && xbps-remove -RoO && xlocate -S && du -sh /var/cache/xbps && rm -rf /var/cache/xbps/* ;;
esac esac
fi fi