summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmin Bandali <bandali@gnu.org>2019-04-14 16:56:05 -0400
committerAmin Bandali <bandali@gnu.org>2019-04-14 16:56:05 -0400
commitd55c009f9bcf815e278dc49948e256b8e2bb34f0 (patch)
treed19b5f913e388979da398a4ee8f18eb7750c4d84
parentacb525a9072517b803309585c0ca60b346d924d6 (diff)
downloadconfigs-d55c009f9bcf815e278dc49948e256b8e2bb34f0.tar.gz
configs-d55c009f9bcf815e278dc49948e256b8e2bb34f0.tar.xz
configs-d55c009f9bcf815e278dc49948e256b8e2bb34f0.zip
bash: aur(): only try cloning if it doesn’t already exist
Diffstat (limited to '')
-rw-r--r--.bashrc2
1 files changed, 1 insertions, 1 deletions
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}
}