1
0
Fork 0

flatpak-manage.sh: improve flatpak detection

This commit is contained in:
Pratham Patel 2024-01-19 09:29:31 +05:30
parent c8da101b1e
commit 7fa2010ac9
Signed by: thefossguy
SSH Key Fingerprint: SHA256:/B3wAg7jnMEBQ2JwkebbS/eXVZANDmqRfnd9QkIhxMI
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ else
exit 1
fi
if [[ -x '/run/current-system/sw/bin/flatpak' ]]; then
if command -v flatpak > /dev/null; then
flatpak remote-add --user --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
flatpak install --user --or-update --assumeyes --noninteractive "${ALL_PKGS[@]}"
flatpak update --user --assumeyes --noninteractive