Exit when no writefreely executable found

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

Ref T555
pull/122/head
Matt Baer 6 years ago
parent f6ba1fc9c8
commit 4c34b34736
  1. 3
      scripts/upgrade-server.sh

@ -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…
Cancel
Save