[fix] The auto upgrade missed a \
This commit is contained in:
parent
1e6dbcb300
commit
b0219d88b2
@ -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"
|
||||||
|
Loading…
Reference in New Issue
Block a user