From d55c009f9bcf815e278dc49948e256b8e2bb34f0 Mon Sep 17 00:00:00 2001 From: Amin Bandali Date: Sun, 14 Apr 2019 16:56:05 -0400 Subject: [PATCH] =?utf8?q?bash:=20aur():=20only=20try=20cloning=20if=20it?= =?utf8?q?=20doesn=E2=80=99t=20already=20exist?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .bashrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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} } -- 2.20.1