aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpml68 <contact@pml68.dev>2025-04-17 23:50:35 +0200
committerpml68 <contact@pml68.dev>2025-04-17 23:50:35 +0200
commitc4b9c90e6680e1ef73936ce8a9833dc08c2443a7 (patch)
tree5bdc145b6e6160da33f5cd9a62ac88db918234ad
parentrefactor: encase some variables in strings, replace if-else chain with case (diff)
downloadaur-c4b9c90e6680e1ef73936ce8a9833dc08c2443a7.tar.gz
fix: so `~` isn't expanded in `"` strings
-rwxr-xr-xaur4
1 files changed, 2 insertions, 2 deletions
diff --git a/aur b/aur
index 68738f0..76b6329 100755
--- a/aur
+++ b/aur
@@ -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
}