bash/deb-update.bash: add user flatpak just in case

This commit is contained in:
Aminda Suomalainen 2023-09-27 22:13:56 +03:00
parent 7a64bfbfbe
commit d7d00acd75
Signed by: Mikaela
SSH Key Fingerprint: SHA256:y2OpGEbett3Fqn8XFrP0X4mWfCVKf4rWkxERzqPY81U
1 changed files with 4 additions and 0 deletions

View File

@ -74,6 +74,10 @@ if hash flatpak 2>/dev/null; then
#echo ' 404 is not a weird error, try flatpak <subcommand> --no-static-deltas'
# Flatpak's version of `apt autoremove`
flatpak uninstall --unused --assumeyes --noninteractive
# And as an user although probably inapplicable for sudo/root
flatpak update --user --noninteractive --assumeyes
flatpak update --user --noninteractive --assumeyes --no-static-deltas
flatpak uninstall --user --unused --assumeyes --noninteractive
fi
if hash snap 2>/dev/null; then