2024-09-21 15:26:32 +01:00
|
|
|
#!/bin/sh -e
|
|
|
|
|
|
|
|
. ../../common-script.sh
|
|
|
|
|
|
|
|
installMeld() {
|
2024-11-01 17:25:11 +00:00
|
|
|
if ! command_exists org.gnome.meld && ! command_exists meld; then
|
2024-09-30 21:47:31 +01:00
|
|
|
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
|
|
|
|
;;
|
2024-11-07 19:03:21 +00:00
|
|
|
apk)
|
|
|
|
"$ESCALATION_TOOL" "$PACKAGER" add meld
|
|
|
|
;;
|
2024-09-30 21:47:31 +01:00
|
|
|
*)
|
2024-11-01 17:25:11 +00:00
|
|
|
checkFlatpak
|
2024-09-30 21:47:31 +01:00
|
|
|
flatpak install -y flathub org.gnome.meld
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
else
|
|
|
|
printf "%b\n" "${GREEN}Meld is already installed.${RC}"
|
|
|
|
fi
|
2024-09-21 15:26:32 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
checkEnv
|
|
|
|
checkEscalationTool
|
2024-09-30 21:47:31 +01:00
|
|
|
installMeld
|