mirror of
https://github.com/containers/podman
synced 2024-10-19 08:44:11 +00:00
hack/release.sh: Add a guard against -dev suffixes for argv[2]
Because it's easier to recover from that if we fail early instead of going through and creating a "Bump to v1.2.3-dev-dev" commit, etc. Signed-off-by: W. Trevor King <wking@tremily.us> Closes: #926 Approved by: rhatdan
This commit is contained in:
parent
b78e7e40f1
commit
cb430d58e6
|
@ -12,6 +12,15 @@
|
|||
|
||||
VERSION="$1"
|
||||
NEXT_VERSION="$2"
|
||||
|
||||
if test "${NEXT_VERSION}" != "${NEXT_VERSION%-dev}"
|
||||
then
|
||||
echo "The next-version argument '${NEXT_VERSION}' should not end in '-dev'." >&2
|
||||
echo "This script will add the -dev suffix as needed internally. Try:" >&2
|
||||
echo " $0 ${VERSION} ${NEXT_VERSION%-dev}" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
DATE=$(date '+%Y-%m-%d')
|
||||
LAST_TAG=$(git describe --tags --abbrev=0)
|
||||
|
||||
|
|
Loading…
Reference in a new issue