From ba9021320b60fa97b955441ac008dbd25baa678e Mon Sep 17 00:00:00 2001 From: nnyyxxxx Date: Sun, 22 Sep 2024 09:13:00 -0400 Subject: [PATCH] Use command_exists instead of command -v --- core/tabs/applications-setup/setup-flatpak.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/tabs/applications-setup/setup-flatpak.sh b/core/tabs/applications-setup/setup-flatpak.sh index 66f8a8030..b3fc56e7b 100644 --- a/core/tabs/applications-setup/setup-flatpak.sh +++ b/core/tabs/applications-setup/setup-flatpak.sh @@ -48,7 +48,7 @@ setup_flatpak() { printf "%b\n" "Adding Flathub remote..." "$ESCALATION_TOOL" flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo else - if command -v flatpak >/dev/null 2>&1; then + if command_exists flatpak; then if ! flatpak remotes | grep -q "flathub"; then printf "%b\n" "${YELLOW}Detected Flatpak package manager but Flathub remote is not added. Would you like to add it? (y/n)${RC}" read -r add_remote