Fix problems installing and updating LTS versions

This commit is contained in:
Dorian Niemiec 2024-05-06 13:03:41 +02:00
parent 13edee2991
commit 5430a6e993
2 changed files with 3 additions and 3 deletions

View file

@ -100,7 +100,7 @@ elif [ "$INSTALLTYPE" == "lts" ]; then
echo 'There was a problem while determining latest LTS SVR.JS version!' echo 'There was a problem while determining latest LTS SVR.JS version!'
exit 1 exit 1
fi fi
SVRJSZIPARCHIVE="$(mktemp -d /tmp/svrjs.XXXXX.zip)" SVRJSZIPARCHIVE="$(mktemp /tmp/svrjs.XXXXX.zip)"
if ! curl -fsSL "https://downloads.svrjs.org/svr.js.$SVRJSVERSION.zip" > $SVRJSZIPARCHIVE; then if ! curl -fsSL "https://downloads.svrjs.org/svr.js.$SVRJSVERSION.zip" > $SVRJSZIPARCHIVE; then
echo 'There was a problem while downloading latest LTS SVR.JS version!' echo 'There was a problem while downloading latest LTS SVR.JS version!'
exit 1 exit 1
@ -270,7 +270,7 @@ elif [ "$INSTALLTYPE" == "lts" ]; then
echo 'Your SVR.JS version is up to date!' echo 'Your SVR.JS version is up to date!'
exit 0 exit 0
fi fi
SVRJSZIPARCHIVE="$(mktemp -d /tmp/svrjs.XXXXX.zip)" SVRJSZIPARCHIVE="$(mktemp /tmp/svrjs.XXXXX.zip)"
if ! curl -fsSL "https://downloads.svrjs.org/svr.js.$SVRJSVERSION.zip" > $SVRJSZIPARCHIVE; then if ! curl -fsSL "https://downloads.svrjs.org/svr.js.$SVRJSVERSION.zip" > $SVRJSZIPARCHIVE; then
echo 'There was a problem while downloading latest LTS SVR.JS version!' echo 'There was a problem while downloading latest LTS SVR.JS version!'
exit 1 exit 1

View file

@ -62,7 +62,7 @@ elif [ "$INSTALLTYPE" == "lts" ]; then
echo 'Your SVR.JS version is up to date!' echo 'Your SVR.JS version is up to date!'
exit 0 exit 0
fi fi
SVRJSZIPARCHIVE="$(mktemp -d /tmp/svrjs.XXXXX.zip)" SVRJSZIPARCHIVE="$(mktemp /tmp/svrjs.XXXXX.zip)"
if ! curl -fsSL "https://downloads.svrjs.org/svr.js.$SVRJSVERSION.zip" > $SVRJSZIPARCHIVE; then if ! curl -fsSL "https://downloads.svrjs.org/svr.js.$SVRJSVERSION.zip" > $SVRJSZIPARCHIVE; then
echo 'There was a problem while downloading latest LTS SVR.JS version!' echo 'There was a problem while downloading latest LTS SVR.JS version!'
exit 1 exit 1