diff options
| author | pml68 <contact@pml68.dev> | 2025-04-17 23:50:35 +0200 |
|---|---|---|
| committer | pml68 <contact@pml68.dev> | 2025-04-17 23:50:35 +0200 |
| commit | c4b9c90e6680e1ef73936ce8a9833dc08c2443a7 (patch) | |
| tree | 5bdc145b6e6160da33f5cd9a62ac88db918234ad | |
| parent | refactor: encase some variables in strings, replace if-else chain with case (diff) | |
| download | aur-c4b9c90e6680e1ef73936ce8a9833dc08c2443a7.tar.gz | |
fix: so `~` isn't expanded in `"` strings
| -rwxr-xr-x | aur | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -31,11 +31,11 @@ _clean() { _update_or_install() { for package in "$@"; do - cd "~/.aur/$package" + 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) + (git clone "https://aur.archlinux.org/$package" ~/.aur/"$package" && cd ~/.aur/"$package" && makepkg -si ; _clean) fi done } |
