File tree Expand file tree Collapse file tree 1 file changed +3
-19
lines changed Expand file tree Collapse file tree 1 file changed +3
-19
lines changed Original file line number Diff line number Diff line change @@ -62,26 +62,10 @@ create_temp_dir() {
62
62
63
63
# Download the latest release
64
64
download_release () {
65
- echo " Fetching latest release information..."
66
-
67
- # Try to get the latest version from GitHub API
68
- if command -v curl & > /dev/null; then
69
- RELEASE_INFO=$( curl -s " $LATEST_RELEASE_URL " )
70
- VERSION=$( echo " $RELEASE_INFO " | grep -o ' "tag_name": "v[^"]*"' | cut -d' "' -f4 | sed ' s/^v//' )
71
-
72
- if [ -z " $VERSION " ]; then
73
- echo " ${RED} Failed to get latest version.${NORMAL} Using direct download link."
74
- # Try simpler URL with the non-versioned symlink
75
- DOWNLOAD_URL=" https://github.com/$GITHUB_REPO /releases/latest/download/lume.tar.gz"
76
- else
77
- echo " Latest version: ${BOLD} $VERSION ${NORMAL} "
78
- DOWNLOAD_URL=" https://github.com/$GITHUB_REPO /releases/download/v$VERSION /lume.tar.gz"
79
- fi
80
- else
81
- echo " ${RED} curl not found.${NORMAL} Using direct download link."
82
- DOWNLOAD_URL=" https://github.com/$GITHUB_REPO /releases/latest/download/lume.tar.gz"
83
- fi
65
+ echo " Downloading latest Lume release..."
84
66
67
+ # Use the direct download link with the non-versioned symlink
68
+ DOWNLOAD_URL=" https://github.com/$GITHUB_REPO /releases/latest/download/lume.tar.gz"
85
69
echo " Downloading from: $DOWNLOAD_URL "
86
70
87
71
# Download the tarball
You can’t perform that action at this time.
0 commit comments