diff --git a/add-version.sh b/add-version.sh index b5f35e1..7374023 100755 --- a/add-version.sh +++ b/add-version.sh @@ -53,7 +53,7 @@ if [ -z "$flink_release" ] || [ -z "$flink_version" ]; then exit 1 fi -if [[ ! "$flink_version" =~ ^$flink_release\.+ ]]; then +if [[ "$flink_version" != "$flink_release"* ]]; then error "Flink release must be prefix of version" fi