mirror of
https://github.com/ChrisTitusTech/linutil.git
synced 2024-11-05 13:15:21 +00:00
refactor meld (#644)
* 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>
This commit is contained in:
parent
66b92c84b0
commit
b023f105ac
|
@ -3,10 +3,25 @@
|
||||||
. ../../common-script.sh
|
. ../../common-script.sh
|
||||||
|
|
||||||
installMeld() {
|
installMeld() {
|
||||||
cd "$HOME" && git clone https://gitlab.gnome.org/GNOME/meld.git
|
if ! command_exists meld; then
|
||||||
echo "PATH=\$PATH:$HOME/meld/bin" | "$ESCALATION_TOOL" tee -a /etc/environment
|
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
|
checkEnv
|
||||||
checkEscalationTool
|
checkEscalationTool
|
||||||
installMeld
|
installMeld
|
|
@ -37,7 +37,7 @@ task_list = "I"
|
||||||
name = "Meld"
|
name = "Meld"
|
||||||
description = "Meld is a visual diff and merge tool that helps compare files, directories, and version-controlled projects."
|
description = "Meld is a visual diff and merge tool that helps compare files, directories, and version-controlled projects."
|
||||||
script = "Developer-tools/meld-setup.sh"
|
script = "Developer-tools/meld-setup.sh"
|
||||||
task_list = "I"
|
task_list = "I FI"
|
||||||
|
|
||||||
[[data.entries]]
|
[[data.entries]]
|
||||||
name = "Ngrok"
|
name = "Ngrok"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user