We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 24bcd13 commit fb82308Copy full SHA for fb82308
install.sh
@@ -32,10 +32,11 @@ type java >/dev/null 2>&1 || {
32
repo="excel-code-generator/code-generator"
33
repoPath="https://github.com/$repo"
34
rawPath="https://raw.githubusercontent.com/$repo"
35
+apiPath="https://api.github.com/repos/$repo/releases/latest"
36
37
# latest version
38
echo "Get the latest version"
-tag=`curl --silent "$repoPath/releases/latest" | sed 's#.*tag/\(.*\)".*#\1#'`
39
+tag=`curl --silent $apiPath | grep "tag_name" | head -n 1 | awk -F ":" '{print $2}' | sed 's/\"//g;s/,//g;s/ //g'
40
echo "Latest version: $tag"
41
42
# download
0 commit comments