Skip to content

Commit 439a325

Browse files
🩹 fix(aur): Install aura-bin via git instead of wget.
1 parent 5fa628f commit 439a325

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

bootstrap/install-aur

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,21 @@ fail() {
1313
}
1414

1515
i() {
16-
wget "https://aur.archlinux.org/cgit/aur.git/snapshot/$1.tar.gz" || fail
17-
tar -xvf "$1".tar.gz && rm "$1".tar.gz
18-
sh -c "cd $1 && makepkg -si --skippgpcheck" || { rm -r "$1" && fail ; }
19-
rm -r "$1"
16+
git clone "https://aur.archlinux.org/${1}.git" "/tmp/${1}" || fail
17+
pushd "/tmp/${1}" || fail
18+
if makepkg -si --skippgpcheck ; then
19+
popd
20+
rm -rf "/tmp/${1}"
21+
else
22+
popd
23+
rm -rf "/tmp/${1}"
24+
fail
25+
fi
2026
}
2127

2228
if ! command -v aura 1>/dev/null 2>&1 ; then
2329
echo 'installing aura'
24-
sudo pacman -S wget --noconfirm --needed
30+
sudo pacman -S git --noconfirm --needed
2531
i aura-bin
2632
fi
2733

0 commit comments

Comments
 (0)