Fix dev tag detection in release script (#4873)
This commit is contained in:
parent
12f790c7cf
commit
eeb8bc3913
1 changed files with 9 additions and 1 deletions
|
@ -2,7 +2,15 @@
|
||||||
|
|
||||||
cd "$(dirname "$0")/.."
|
cd "$(dirname "$0")/.."
|
||||||
|
|
||||||
head -n 3 homeassistant/const.py | tail -n 1 | grep dev
|
head -n 5 homeassistant/const.py | tail -n 1 | grep PATCH_VERSION > /dev/null
|
||||||
|
|
||||||
|
if [ $? -eq 1 ]
|
||||||
|
then
|
||||||
|
echo "Patch version not found on const.py line 5"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
head -n 5 homeassistant/const.py | tail -n 1 | grep dev > /dev/null
|
||||||
|
|
||||||
if [ $? -eq 0 ]
|
if [ $? -eq 0 ]
|
||||||
then
|
then
|
||||||
|
|
Loading…
Add table
Reference in a new issue