linuxShortcuts/Pacman/aur.sh

13 lines
270 B
Bash
Raw Normal View History

2018-06-22 04:39:43 +00:00
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"
2018-06-22 04:39:43 +00:00
echo "cd --; rm -rf ~/AUR/""$1""" > clean.sh
echo "$sudoPass" | sudo -S yes | makepkg -si && source clean.sh