From cbf902bc42c712a5093922e30368d05f0dfec8b2 Mon Sep 17 00:00:00 2001 From: Bryce Mecum Date: Sun, 24 Nov 2024 12:29:30 -0800 Subject: [PATCH 1/3] Stop if archery isn't available --- dev/release/post-04-website.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dev/release/post-04-website.sh b/dev/release/post-04-website.sh index a3c4dbbe07e6a..2948b08a598d1 100755 --- a/dev/release/post-04-website.sh +++ b/dev/release/post-04-website.sh @@ -29,6 +29,12 @@ if [ "$#" -ne 2 ]; then exit 1 fi +# Verify archery is available and stop if not +if [ -z "$(which archery)" ]; then + echo "This script requires archery. Please install it and try again." + exit 1 +fi + previous_version=$1 version=$2 From 2093853aeea487679d1b9a3611cb0acdbafae32a Mon Sep 17 00:00:00 2001 From: Bryce Mecum Date: Sun, 24 Nov 2024 16:43:03 -0800 Subject: [PATCH 2/3] Update dev/release/post-04-website.sh Co-authored-by: Sutou Kouhei --- dev/release/post-04-website.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev/release/post-04-website.sh b/dev/release/post-04-website.sh index 2948b08a598d1..d8bec9f5542c4 100755 --- a/dev/release/post-04-website.sh +++ b/dev/release/post-04-website.sh @@ -30,7 +30,7 @@ if [ "$#" -ne 2 ]; then fi # Verify archery is available and stop if not -if [ -z "$(which archery)" ]; then +if archery --help > /dev/null 2>&1; then echo "This script requires archery. Please install it and try again." exit 1 fi From 3f21df420226cc4808d006cd778ad84eb4a9b637 Mon Sep 17 00:00:00 2001 From: Bryce Mecum Date: Sun, 24 Nov 2024 16:51:36 -0800 Subject: [PATCH 3/3] Update dev/release/post-04-website.sh Co-authored-by: Sutou Kouhei --- dev/release/post-04-website.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev/release/post-04-website.sh b/dev/release/post-04-website.sh index d8bec9f5542c4..a2b0bd61525eb 100755 --- a/dev/release/post-04-website.sh +++ b/dev/release/post-04-website.sh @@ -30,7 +30,7 @@ if [ "$#" -ne 2 ]; then fi # Verify archery is available and stop if not -if archery --help > /dev/null 2>&1; then +if ! archery --help > /dev/null 2>&1; then echo "This script requires archery. Please install it and try again." exit 1 fi