From eeb8bc391377c4f8a0422d3b2dc56f2ac420dad0 Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Mon, 12 Dec 2016 22:18:20 -0800 Subject: [PATCH] Fix dev tag detection in release script (#4873) --- script/release | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/script/release b/script/release index 40d906b17bf435..43af9b92cb1fd6 100755 --- a/script/release +++ b/script/release @@ -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