bash: aur(): only try cloning if it doesn’t already exist
[~bandali/configs] / .bashrc
diff --git a/.bashrc b/.bashrc
index 3a76eff..a5cc322 100644 (file)
--- a/.bashrc
+++ b/.bashrc
@@ -38,7 +38,7 @@ alias best="youtube-dl -f best"
 
 aur() {
    cd ~/usr/builds
-   git clone https://aur.archlinux.org/${1}.git
+   [ -d ${1} ] || git clone https://aur.archlinux.org/${1}.git
    cd ${1}
 }