[fix] The auto upgrade missed a \

This commit is contained in:
alban 2019-09-07 20:57:30 +00:00
parent 1e6dbcb300
commit b0219d88b2

View File

@ -240,7 +240,7 @@ NEW=\$(curl -s \$URL | grep -e ">wekan.*zip"|sed -r "s/^.*>wekan-(.*?).zip<.*\$/
CUR=\$(readlink /home/wekan/bundle| cut -d"/" -f 4) CUR=\$(readlink /home/wekan/bundle| cut -d"/" -f 4)
[ "\$NEW" == "\$CUR" ] && exit 0 [ "\$NEW" == "\$CUR" ] && exit 0
[ -e /home/wekan/\$NEW ] && exit 0 [ -e /home/wekan/\$NEW ] && exit 0
echo "$(date) Install $NEW" echo "\$(date) Install $NEW"
TMP=\$( mktemp -d ) TMP=\$( mktemp -d )
cd "\$TMP" cd "\$TMP"
wget --quiet "\$URL/wekan-\$NEW.zip" wget --quiet "\$URL/wekan-\$NEW.zip"