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:
committed by
GitHub
parent
f0ca0fbf64
commit
daf45665c4
@@ -13,8 +13,10 @@ install_arch_updates() {
|
||||
else
|
||||
echo "Missing AUR Helper. Try installing yay or paru"
|
||||
fi
|
||||
if command -v flatpak &> /dev/null; then
|
||||
echo "Updating Flatpak packages..."
|
||||
flatpak update -y
|
||||
fi
|
||||
echo "Done with Arch & AUR updates."
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user