mirror of
https://github.com/ChrisTitusTech/linutil.git
synced 2024-11-25 06:24:26 +00:00
216f1a4836
* BIG CHANGES * core metadata * Added readme.md to the package * Moved the crate back to tui Co-authored-by: Liam <lj3954@users.noreply.github.com> --------- Co-authored-by: Liam <lj3954@users.noreply.github.com>
27 lines
827 B
Bash
Executable File
27 lines
827 B
Bash
Executable File
#!/bin/sh -e
|
|
|
|
. ../../common-script.sh
|
|
|
|
installDepend() {
|
|
case "$PACKAGER" in
|
|
pacman)
|
|
if ! command_exists paru; then
|
|
printf "%b\n" "${YELLOW}Installing paru as AUR helper...${RC}"
|
|
"$ESCALATION_TOOL" "$PACKAGER" -S --needed --noconfirm base-devel
|
|
cd /opt && "$ESCALATION_TOOL" git clone https://aur.archlinux.org/paru.git && "$ESCALATION_TOOL" chown -R "$USER": ./paru
|
|
cd paru && makepkg --noconfirm -si
|
|
printf "%b\n" "${GREEN}Paru installed${RC}"
|
|
else
|
|
printf "%b\n" "${GREEN}Paru already installed${RC}"
|
|
fi
|
|
;;
|
|
*)
|
|
printf "%b\n" "${RED}Unsupported package manager: "$PACKAGER"${RC}"
|
|
;;
|
|
esac
|
|
}
|
|
|
|
checkEnv
|
|
checkEscalationTool
|
|
installDepend
|