Skip to content

Commit 44914f1

Browse files
committed
Simplify latest version install script
1 parent 18f85e3 commit 44914f1

File tree

1 file changed

+3
-19
lines changed

1 file changed

+3
-19
lines changed

libs/lume/scripts/install.sh

Lines changed: 3 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -62,26 +62,10 @@ create_temp_dir() {
6262

6363
# Download the latest release
6464
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..."
8466

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"
8569
echo "Downloading from: $DOWNLOAD_URL"
8670

8771
# Download the tarball

0 commit comments

Comments
 (0)