Exit when no writefreely executable found
(or `writefreely -v` otherwise doesn't output anything) Ref T555
This commit is contained in:
parent
f6ba1fc9c8
commit
4c34b34736
|
@ -36,6 +36,9 @@ url=`curl -s https://api.github.com/repos/writeas/writefreely/releases/latest |
|
||||||
# check current version
|
# check current version
|
||||||
|
|
||||||
current=`./writefreely -v`
|
current=`./writefreely -v`
|
||||||
|
if [ -z "$current" ]; then
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
echo "Current version is v${current:(-5):5}"
|
echo "Current version is v${current:(-5):5}"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue