diff --git a/other/installation-script/install.sh b/other/installation-script/install.sh index 4ebe8e41..6d1ea9ac 100755 --- a/other/installation-script/install.sh +++ b/other/installation-script/install.sh @@ -70,6 +70,7 @@ initDownloadTool() { echo "Using $DOWNLOAD_TOOL as download tool" } +# checkLatestVersion() sets the CHECKLATESTVERSION_TAG variable to the latest version checkLatestVersion() { # Use the GitHub releases webpage to find the latest version for this project # so we don't get rate-limited. @@ -84,7 +85,6 @@ checkLatestVersion() { echo "Cannot determine latest tag." exit 1 fi - eval "$1='$CHECKLATESTVERSION_TAG'" } getFile() { @@ -101,7 +101,8 @@ getFile() { downloadFile() { if [ -z "$1" ]; then - checkLatestVersion TAG + checkLatestVersion + TAG="$CHECKLATESTVERSION_TAG" else TAG=$1 fi