Skip to content

Commit

Permalink
arch: error if not able to get sha
Browse files Browse the repository at this point in the history
  • Loading branch information
mise-en-dev committed Dec 12, 2023
1 parent ebd675f commit b886741
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion scripts/release-aur-bin.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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://[email protected]/rtx-bin.git aur-bin
Expand Down Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion scripts/release-aur.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ git config --global user.email [email protected]

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://[email protected]/rtx.git aur
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit b886741

Please sign in to comment.