mirror of
https://github.com/writefreely/writefreely
synced 2024-09-20 21:51:54 +00:00
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
1 changed files with 3 additions and 0 deletions
|
@ -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}"
|
||||
|
||||
|
|
Loading…
Reference in a new issue