From 368ae97a73ecb82fb5855fdc8610dc7e2dd17084 Mon Sep 17 00:00:00 2001 From: Jeff Dickey <216188+jdx@users.noreply.github.com> Date: Sat, 28 Sep 2024 18:05:58 -0500 Subject: [PATCH] chore: always remove aur repo --- tasks/bump-aur | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tasks/bump-aur b/tasks/bump-aur index d5fcfcf..8ab3024 100755 --- a/tasks/bump-aur +++ b/tasks/bump-aur @@ -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}')