Hi all,
Since we are having the next release on the go, I try to use the release tool
[1] by courtesy of Julian.
I encounter an error "Error: Not a X.Y.Z version number "0.8.0" when I execute
"bash download_staged_release.sh 0.8.0 2".
I check the code and find the following two functions in common.sh seem to
return the wrong results:
```
function checkVerNum() { # $1: X.Y.Z returns true/false (0/1)
if [ `echo $1 | grep -o -E '^\d+\.\d+\.\d+$'` ]; then
return 0
else
return 1
fi
}
function checkRcNum() { # $1: rc-num returns true/false (0/1)
if [ `echo $1 | grep -o -E '^\d+$'` ] && [ $1 != 0 ]; then
return 0
else
return 1
fi
}
```
I flip the results and "bash download_staged_release.sh 0.8.0 2" can run
successfully.
Sincerely,
Lei Rui
[1] https://github.com/apache/incubator-iotdb/tree/tooling-for-release/tools