Skip to content

Commit

Permalink
refactor meld
Browse files Browse the repository at this point in the history
  • Loading branch information
nnyyxxxx committed Sep 23, 2024
1 parent d38d7a1 commit 3308870
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions core/tabs/applications-setup/Developer-tools/meld-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,22 @@
. ../../common-script.sh

installMeld() {
cd "$HOME" && git clone https://gitlab.gnome.org/GNOME/meld.git
echo "PATH=\$PATH:$HOME/meld/bin" | "$ESCALATION_TOOL" tee -a /etc/environment
if ! command_exists meld; then
printf "%b\n" "${YELLOW}Installing Meld...${RC}"
case "$PACKAGER" in
pacman)
"$ESCALATION_TOOL" "$PACKAGER" -S --needed --noconfirm 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
installMeld

0 comments on commit 3308870

Please sign in to comment.