From b88674161a574cc1865ada7743a96b9d3e927330 Mon Sep 17 00:00:00 2001 From: rtx-vm <123107610+rtx-vm@users.noreply.github.com> Date: Tue, 12 Dec 2023 16:36:55 -0600 Subject: [PATCH] arch: error if not able to get sha --- scripts/release-aur-bin.sh | 3 ++- scripts/release-aur.sh | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/release-aur-bin.sh b/scripts/release-aur-bin.sh index b470c8e6a..e2b1bfe5f 100755 --- a/scripts/release-aur-bin.sh +++ b/scripts/release-aur-bin.sh @@ -8,7 +8,7 @@ RTX_VERSION=$(./scripts/get-version.sh) TAR_GZ_URI="https://github.com/jdx/rtx/releases/download/$RTX_VERSION/rtx-$RTX_VERSION-linux-x64.tar.gz" -SHA512=$(curl -L "$TAR_GZ_URI" | sha512sum | awk '{print $1}') +SHA512=$(curl -fsSL "$TAR_GZ_URI" | sha512sum | awk '{print $1}') if [ ! -d aur-bin ]; then git clone ssh://aur@aur.archlinux.org/rtx-bin.git aur-bin @@ -74,6 +74,7 @@ if git diff-index --quiet HEAD --; then echo "No changes to PKGBUILD or .SRCINFO" exit 0 fi +git diff --cached git commit -m "rtx ${RTX_VERSION#v}" if [[ "$DRY_RUN" == 0 ]]; then git push diff --git a/scripts/release-aur.sh b/scripts/release-aur.sh index 7917de26a..82ed3d7ac 100755 --- a/scripts/release-aur.sh +++ b/scripts/release-aur.sh @@ -6,7 +6,7 @@ git config --global user.email 123107610+rtx-vm@users.noreply.github.com RTX_VERSION=$(./scripts/get-version.sh) -SHA512=$(curl -L "https://github.com/jdx/rtx/archive/$RTX_VERSION.tar.gz" | sha512sum | awk '{print $1}') +SHA512=$(curl -fsSL "https://github.com/jdx/rtx/archive/$RTX_VERSION.tar.gz" | sha512sum | awk '{print $1}') if [ ! -d aur ]; then git clone ssh://aur@aur.archlinux.org/rtx.git aur @@ -80,6 +80,7 @@ if git diff-index --quiet HEAD --; then echo "No changes to PKGBUILD or .SRCINFO" exit 0 fi +git diff --cached git commit -m "rtx ${RTX_VERSION#v}" if [ "$DRY_RUN" == 0 ]; then git push