aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpml68 <contact@pml68.dev>2024-12-24 00:22:28 +0100
committerpml68 <contact@pml68.dev>2024-12-24 00:22:28 +0100
commitd473b9bf777b2e45725ab7e045fc3521bf18ca19 (patch)
treef260da11f1d6bd3781c45acab6b47b7ee267cd2a
parentdocs: add fish completion directions to README (diff)
downloadaur-d473b9bf777b2e45725ab7e045fc3521bf18ca19.tar.gz
fix: so the "simpler approach" doesn't actually work it seems
-rwxr-xr-xaur5
1 files changed, 3 insertions, 2 deletions
diff --git a/aur b/aur
index 0a612b9..5150c26 100755
--- a/aur
+++ b/aur
@@ -31,8 +31,9 @@ _clean() {
_update_or_install() {
for package in "$@"; do
- if [[ -d "~/.aur/$package" ]]; then
- (cd ~/.aur/$package && git pull && makepkg -si ; _clean)
+ cd ~/.aur/$package
+ if [[ $? -eq 0 ]]; then
+ (git pull && makepkg -si ; _clean)
else
(git clone https://aur.archlinux.org/$package ~/.aur/$package && cd ~/.aur/$package && makepkg -si ; _clean)
fi