Skip to content

Commit ff79dac

Browse files
author
Vladimir Kotal
committed
add version format check
1 parent 3248c70 commit ff79dac

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

dev/release.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ fi
1515

1616
VERSION=$1
1717

18+
if ! echo "$VERSION" | grep '^[0-9]\+\.[0-9]\+\.[0-9]\+$' >/dev/null; then
19+
echo "version needs to be in the form of <num>.<num>.<num>"
20+
exit 1
21+
fi
22+
1823
if [[ ! -d $PWD/opengrok-indexer ]]; then
1924
echo "This needs to be run from top-level directory of the repository"
2025
exit 1

0 commit comments

Comments
 (0)