Minor just in case update

This commit is contained in:
Miroslav Stampar
2017-08-04 13:59:15 +02:00
parent fac6712a35
commit 672abe8416
3 changed files with 7 additions and 2 deletions

View File

@@ -1,5 +1,10 @@
#!/bin/bash
if [ ! -f ~/.pypirc ]; then
echo "File ~/.pypirc is missing"
exit 1
fi
declare -x SCRIPTPATH="${0}"
SETTINGS="${SCRIPTPATH%/*}/../../lib/core/settings.py"
VERSION=$(cat $SETTINGS | grep -E "^VERSION =" | cut -d '"' -f 2 | cut -d '.' -f 1-3)