diff --git a/scripts/notify-bootc-user.sh b/scripts/notify-bootc-user.sh index d6496d0..b68aef6 100755 --- a/scripts/notify-bootc-user.sh +++ b/scripts/notify-bootc-user.sh @@ -61,6 +61,12 @@ if have "$FLATPAK"; then $FLATPAK update -y --noninteractive 2>&1 \ | grep -v -E "Treating remote fetch error as non-fatal|No such ref .* in remote" \ || true + # Verwaiste Runtimes (upstream nicht mehr angeboten / von keiner App + # mehr referenziert) entfernen, damit sie nicht bei jedem Update als + # "No such ref" warnen und Platz belegen. + $FLATPAK uninstall --unused -y 2>&1 \ + | grep -v -E "Nothing unused to uninstall|No installed refs" \ + || true $LOGGER -t "$TAG" "Flatpak-Update abgeschlossen." else $LOGGER -t "$TAG" "Flatpak nicht installiert, ueberspringe Flatpak-Update."