We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 1e6183c + e2b5740 commit 16c002bCopy full SHA for 16c002b
other/installation-script/install.sh
@@ -70,6 +70,7 @@ initDownloadTool() {
70
echo "Using $DOWNLOAD_TOOL as download tool"
71
}
72
73
+# checkLatestVersion() sets the CHECKLATESTVERSION_TAG variable to the latest version
74
checkLatestVersion() {
75
# Use the GitHub releases webpage to find the latest version for this project
76
# so we don't get rate-limited.
@@ -84,7 +85,6 @@ checkLatestVersion() {
84
85
echo "Cannot determine latest tag."
86
exit 1
87
fi
- eval "$1='$CHECKLATESTVERSION_TAG'"
88
89
90
getFile() {
@@ -101,7 +101,8 @@ getFile() {
101
102
downloadFile() {
103
if [ -z "$1" ]; then
104
- checkLatestVersion TAG
+ checkLatestVersion
105
+ TAG="$CHECKLATESTVERSION_TAG"
106
else
107
TAG=$1
108
0 commit comments