mirror of
https://github.com/ChrisTitusTech/linutil.git
synced 2024-11-22 13:22:28 +00:00
1e39d967c5
* Add basic apk to scripts * Add common service script * Fix alpine bugs * Add flatpak installations * chore: update scripts, add common-service-script to shellcheckrc
30 lines
783 B
Bash
30 lines
783 B
Bash
#!/bin/sh -e
|
|
|
|
. ../../common-script.sh
|
|
|
|
installMeld() {
|
|
if ! command_exists org.gnome.meld && ! command_exists meld; then
|
|
printf "%b\n" "${YELLOW}Installing Meld...${RC}"
|
|
case "$PACKAGER" in
|
|
pacman)
|
|
"$ESCALATION_TOOL" "$PACKAGER" -S --needed --noconfirm meld
|
|
;;
|
|
apt-get|nala)
|
|
"$ESCALATION_TOOL" "$PACKAGER" -y install meld
|
|
;;
|
|
apk)
|
|
"$ESCALATION_TOOL" "$PACKAGER" add meld
|
|
;;
|
|
*)
|
|
checkFlatpak
|
|
flatpak install -y flathub org.gnome.meld
|
|
;;
|
|
esac
|
|
else
|
|
printf "%b\n" "${GREEN}Meld is already installed.${RC}"
|
|
fi
|
|
}
|
|
|
|
checkEnv
|
|
checkEscalationTool
|
|
installMeld |