mirror of
https://github.com/ChrisTitusTech/linutil.git
synced 2024-11-06 13:39:41 +00:00
b023f105ac
* refactor meld * rename task * add support for deb based distros * add i Co-authored-by: Adam Perkowski <adas1per@protonmail.com> --------- Co-authored-by: nnyyxxxx <nnyyxxxx@users.noreply.github.com> Co-authored-by: Adam Perkowski <adas1per@protonmail.com>
27 lines
665 B
Bash
27 lines
665 B
Bash
#!/bin/sh -e
|
|
|
|
. ../../common-script.sh
|
|
|
|
installMeld() {
|
|
if ! 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
|
|
;;
|
|
*)
|
|
. ../setup-flatpak.sh
|
|
flatpak install -y flathub org.gnome.meld
|
|
;;
|
|
esac
|
|
else
|
|
printf "%b\n" "${GREEN}Meld is already installed.${RC}"
|
|
fi
|
|
}
|
|
|
|
checkEnv
|
|
checkEscalationTool
|
|
installMeld |