Skip to content

Commit 16c002b

Browse files
authored
Merge pull request #226 from per1234/remove-eval
Remove unnecessary use of `eval` from install script
2 parents 1e6183c + e2b5740 commit 16c002b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

other/installation-script/install.sh

+3-2
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ initDownloadTool() {
7070
echo "Using $DOWNLOAD_TOOL as download tool"
7171
}
7272

73+
# checkLatestVersion() sets the CHECKLATESTVERSION_TAG variable to the latest version
7374
checkLatestVersion() {
7475
# Use the GitHub releases webpage to find the latest version for this project
7576
# so we don't get rate-limited.
@@ -84,7 +85,6 @@ checkLatestVersion() {
8485
echo "Cannot determine latest tag."
8586
exit 1
8687
fi
87-
eval "$1='$CHECKLATESTVERSION_TAG'"
8888
}
8989

9090
getFile() {
@@ -101,7 +101,8 @@ getFile() {
101101

102102
downloadFile() {
103103
if [ -z "$1" ]; then
104-
checkLatestVersion TAG
104+
checkLatestVersion
105+
TAG="$CHECKLATESTVERSION_TAG"
105106
else
106107
TAG=$1
107108
fi

0 commit comments

Comments
 (0)