projects
/
~bandali
/
configs
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
acb525a
)
bash: aur(): only try cloning if it doesn’t already exist
author
Amin Bandali
<bandali@gnu.org>
Sun, 14 Apr 2019 20:56:05 +0000
(16:56 -0400)
committer
Amin Bandali
<bandali@gnu.org>
Sun, 14 Apr 2019 20:56:05 +0000
(16:56 -0400)
.bashrc
patch
|
blob
|
blame
|
history
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
aur() {
cd ~/usr/builds
- git clone https://aur.archlinux.org/${1}.git
+
[ -d ${1} ] ||
git clone https://aur.archlinux.org/${1}.git
cd ${1}
}
cd ${1}
}