From: Amin Bandali Date: Sun, 14 Apr 2019 20:56:05 +0000 (-0400) Subject: bash: aur(): only try cloning if it doesn’t already exist X-Git-Url: https://git.shemshak.org/~bandali/configs/commitdiff_plain/d55c009f9bcf815e278dc49948e256b8e2bb34f0 bash: aur(): only try cloning if it doesn’t already exist --- diff --git a/.bashrc b/.bashrc index 3a76eff..a5cc322 100644 --- 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} }