@ -7,7 +7,7 @@
## should back them up FIRST. ##
## should back them up FIRST. ##
## ##
## ##
## This must be run from the web application root directory ##
## This must be run from the web application root directory ##
## i.e. /var/www/writefreely, and operates under the assumption that you ##
## i.e. /var/www/writefreely, and operates under the assumption that you##
## have not installed the binary `writefreely` in another location. ##
## have not installed the binary `writefreely` in another location. ##
###############################################################################
###############################################################################
#
#
@ -35,12 +35,13 @@ url=`curl -s https://api.github.com/repos/writeas/writefreely/releases/latest |
# check current version
# check current version
curren t= ` ./writefreely -v`
bin_outpu t= ` ./writefreely -v`
if [ -z " $curren t " ] ; then
if [ -z " $bin_outpu t " ] ; then
exit 1
exit 1
fi
fi
echo " Current version is v ${ current : (-5) : 5 } "
current = ${ bin_output : 12 : 5 }
echo " Current version is v $current "
# grab latest version number
# grab latest version number
IFS = '/'
IFS = '/'
@ -51,7 +52,7 @@ echo "Latest release is $latest"
IFS = '.'
IFS = '.'
read -ra cv <<< " ${ current : (-5) : 5 } "
read -ra cv <<< " $ current"
read -ra lv <<< " ${ latest #v } "
read -ra lv <<< " ${ latest #v } "
IFS = ' '
IFS = ' '