linuxShortcuts/Pacman/aur.sh
2018-06-22 01:39:43 -03:00

13 lines
270 B
Bash

if [ -z "$2" ]; then
echo -n Sudo Password:
read -s sudoPass
else
sudoPass=$2
fi
mkdir -p ~/AUR
cd ~/AUR
git clone https://aur.archlinux.org/"$1".git
cd "$1"
echo "cd --; rm -rf ~/AUR/""$1""" > clean.sh
echo "$sudoPass" | sudo -S yes | makepkg -si && source clean.sh