Skip to content

Commit

Permalink
chore: always remove aur repo
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed Sep 28, 2024
1 parent dcced73 commit 368ae97
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tasks/bump-aur
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,9 @@ set -euxo pipefail
pkgname="${usage_pkgname:-}"
USAGE_VERSION=v$(cargo metadata --no-deps --format-version 1 | jq -r '.packages[] | select(.name == "usage-cli") | .version')

if [ ! -d "aur-$pkgname" ]; then
git clone "ssh://aur@aur.archlinux.org/$pkgname.git aur"
fi
git -C "aur-$pkgname" pull
rm -rf aur
git clone "ssh://aur@aur.archlinux.org/$pkgname.git aur"
git -C aur pull

if [ "$pkgname" == "usage" ]; then
SOURCE_SHA512=$(curl -fsSL "/~https://github.com/jdx/usage/archive/$USAGE_VERSION.tar.gz" | sha512sum | awk '{print $1}')
Expand Down

0 comments on commit 368ae97

Please sign in to comment.