Skip to content

Commit

Permalink
chore: make sure cargo set-version is installed
Browse files Browse the repository at this point in the history
  • Loading branch information
RolandSherwin authored and joshuef committed Mar 28, 2024
1 parent 6129c7a commit c78d10a
Showing 1 changed file with 5 additions and 13 deletions.
18 changes: 5 additions & 13 deletions resources/scripts/bump_version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,11 @@ set -e
# Suffix to append to the version. Passed as an argument to this script.
SUFFIX="$1"

# if there's _any_ suffix, ensure cargo set-version is installed
if [ -n "$SUFFIX" ]; then
# If 'main' is passed as a suffix, treat it as if no suffix was provided
if [ "$SUFFIX" == "main" ]; then
SUFFIX=""
fi

# Check if the 'cargo set-version' command is available
if ! cargo set-version --help > /dev/null 2>&1; then
echo "cargo set-version command not found."
echo "Please install cargo-edit with the command: cargo install cargo-edit --features vendored-openssl"
exit 1
fi
# Ensure cargo set-version is installed
if ! cargo set-version --help > /dev/null 2>&1; then
echo "cargo set-version command not found."
echo "Please install cargo-edit with the command: cargo install cargo-edit --features vendored-openssl"
exit 1
fi

# Ensure the suffix is either alpha or beta
Expand Down

0 comments on commit c78d10a

Please sign in to comment.