mirror of
https://github.com/brunofontes/linuxShortcuts.git
synced 2024-11-24 02:01:08 +00:00
13 lines
270 B
Bash
Executable File
13 lines
270 B
Bash
Executable File
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
|