linutil/core/tabs/applications-setup/Developer-tools/lapce.sh
2024-10-01 22:36:55 +00:00

26 lines
532 B
Bash

#!/bin/sh -e
. ../../common-script.sh
installLapce() {
if ! command_exists lapce; then
printf "%b\n" "${YELLOW}Installing Lapce...${RC}"
case "$PACKAGER" in
pacman)
"$AUR_HELPER" -S --needed --noconfirm lapce
;;
*)
. ../setup-flatpak.sh
flatpak install flathub dev.lapce.lapce
;;
esac
else
printf "%b\n" "${GREEN}Lapce is already installed.${RC}"
fi
}
checkEnv
checkEscalationTool
checkAURHelper
installLapce