fix(scripts): update flatpak only if command exists (#1000)

* fix(scripts): update flatpak only if command exists

Add a check to run flatpak update only when the flatpak command is
available, since Flatpak is not installed by default on Arch Linux,
preventing errors if flatpak is missing.

* Update scripts/runUpdates.sh

---------

Co-authored-by: Jas Singh <jaskiratpal.singh@outlook.com>
This commit is contained in:
Luiz Felipe Machado
2025-06-14 18:19:33 -03:00
committed by GitHub
parent f0ca0fbf64
commit daf45665c4

View File

@@ -13,8 +13,10 @@ install_arch_updates() {
else else
echo "Missing AUR Helper. Try installing yay or paru" echo "Missing AUR Helper. Try installing yay or paru"
fi fi
if command -v flatpak &> /dev/null; then
echo "Updating Flatpak packages..." echo "Updating Flatpak packages..."
flatpak update -y flatpak update -y
fi
echo "Done with Arch & AUR updates." echo "Done with Arch & AUR updates."
} }