Skip to content

Commit

Permalink
Fix dev tag detection in release script (home-assistant#4873)
Browse files Browse the repository at this point in the history
  • Loading branch information
balloob authored Dec 13, 2016
1 parent 12f790c commit eeb8bc3
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion script/release
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,15 @@

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 ]
then
Expand Down

0 comments on commit eeb8bc3

Please sign in to comment.