Skip to content

Commit

Permalink
Fix error when gpg_key is not set and add check for mvn
Browse files Browse the repository at this point in the history
Patch by brandonwilliams; reviewed by bereng for CASSANDRA-19559
  • Loading branch information
driftx committed Apr 16, 2024
1 parent 2db7f8f commit cdf0ec5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cassandra-release/prepare_release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ if [ -z "$gpg_key" ]; then
fi

if [ "$gpg_key" = "XXXXXXXX" ]; then
exit -e "Gpg key is unset. Pleae set gpg_key variable."
echo >&2 "Gpg key is unset. Pleae set gpg_key variable." && exit 1
fi

# The name of remote for the asf remote in your git repo
Expand All @@ -28,6 +28,7 @@ command -v reprepro >/dev/null 2>&1 || { echo >&2 "reprepro needs to be installe
command -v rpmsign >/dev/null 2>&1 || { echo >&2 "rpmsign needs to be installed"; exit 1; }
command -v docker >/dev/null 2>&1 || { echo >&2 "docker needs to be installed"; exit 1; }
command -v createrepo_c >/dev/null 2>&1 || { echo >&2 "createrepo_c needs to be installed"; exit 1; }
command -v mvn >/dev/null 2>&1 || { echo >&2 "mvn needs to be installed"; exit 1; }
(docker info >/dev/null 2>&1) || { echo >&2 "docker needs to running"; exit 1; }

###################
Expand Down

0 comments on commit cdf0ec5

Please sign in to comment.