Exit when no writefreely executable found

(or `writefreely -v` otherwise doesn't output anything)

Ref T555
This commit is contained in:
Matt Baer 2019-06-14 16:43:18 -04:00
parent f6ba1fc9c8
commit 4c34b34736
1 changed files with 3 additions and 0 deletions

View File

@ -36,6 +36,9 @@ url=`curl -s https://api.github.com/repos/writeas/writefreely/releases/latest |
# check current version
current=`./writefreely -v`
if [ -z "$current" ]; then
exit 1
fi
echo "Current version is v${current:(-5):5}"