linutil/core/tabs/applications-setup/bottles-setup.sh
Nyx 2662aa03c4
small refactor (#563)
* small refactor

* Fix formatting

---------

Co-authored-by: nnyyxxxx <nnyyxxxx@users.noreply.github.com>
2024-09-20 09:27:31 -05:00

21 lines
457 B
Bash
Executable File

#!/bin/sh -e
. ../common-script.sh
installBottles() {
if ! command_exists flatpak; then
printf "%b\n" "${YELLOW}Installing Bottles...${RC}"
case "$PACKAGER" in
*)
. ./setup-flatpak.sh
flatpak install -y flathub com.usebottles.bottles
;;
esac
else
printf "%b\n" "${GREEN}Bottles is already installed.${RC}"
fi
}
checkEnv
checkEscalationTool
installBottles