Skip to content

Instantly share code, notes, and snippets.

View jyemin's full-sized avatar

Jeff Yemin jyemin

View GitHub Profile
#!/bin/bash
set -o errexit # Exit the script with error if any of the commands fail
if [ "$#" -lt 2 ] || [ "$#" -gt 3 ]; then
echo "Usage: $0 <release version> <pre-release suffix> <remote (defaults to origin)>" >&2
exit 1
fi
CURRENT=$1-SNAPSHOT