28 lines
730 B
Bash
28 lines
730 B
Bash
# ------------------------------------------------------
|
|
# Check if yay is installed
|
|
# ------------------------------------------------------
|
|
echo -e "${GREEN}"
|
|
cat <<"EOF"
|
|
_ _ __ _ _ _
|
|
| | | |/ _` | | | |
|
|
| |_| | (_| | |_| |
|
|
\__, |\__,_|\__, |
|
|
|___/ |___/
|
|
|
|
EOF
|
|
echo -e "${NONE}"
|
|
if sudo pacman -Qs yay > /dev/null ; then
|
|
echo "yay is already installed!"
|
|
else
|
|
echo "yay is not installed. Will be installed now!"
|
|
_installPackagesPacman "base-devel"
|
|
SCRIPT=$(realpath "$0")
|
|
temp_path=$(dirname "$SCRIPT")
|
|
echo $temp_path
|
|
git clone https://aur.archlinux.org/yay-git.git ~/yay-git
|
|
cd ~/yay-git
|
|
makepkg -si
|
|
cd $temp_path
|
|
echo "yay has been installed successfully."
|
|
fi
|
|
echo "" |