diff options
| author | pml68 <contact@pml68.dev> | 2024-12-24 00:22:28 +0100 |
|---|---|---|
| committer | pml68 <contact@pml68.dev> | 2024-12-24 00:22:28 +0100 |
| commit | d473b9bf777b2e45725ab7e045fc3521bf18ca19 (patch) | |
| tree | f260da11f1d6bd3781c45acab6b47b7ee267cd2a | |
| parent | docs: add fish completion directions to README (diff) | |
| download | aur-d473b9bf777b2e45725ab7e045fc3521bf18ca19.tar.gz | |
fix: so the "simpler approach" doesn't actually work it seems
| -rwxr-xr-x | aur | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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 |
