Skip to content

Commit b080753

Browse files
authored
Merge pull request #9 from nathfavour/master
Fix Installer
2 parents bf4d62e + 6e0be52 commit b080753

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

install.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ case "$ARCH" in
1818
*) echo "Unsupported architecture: $ARCH"; exit 1 ;;
1919
esac
2020

21-
if [ "$OS" == "darwin" ]; then
21+
if [ "$OS" = "darwin" ]; then
2222
OS="darwin"
23-
elif [ "$OS" == "linux" ]; then
23+
elif [ "$OS" = "linux" ]; then
2424
# Check for Android (Termux)
2525
if [ -n "$TERMUX_VERSION" ]; then
2626
OS="android"
@@ -33,14 +33,14 @@ else
3333
fi
3434

3535
BINARY_NAME="vibeaura-${OS}-${ARCH}"
36-
if [ "$OS" == "windows" ]; then
36+
if [ "$OS" = "windows" ]; then
3737
BINARY_NAME+=".exe"
3838
fi
3939

4040
echo "Detected Platform: $OS/$ARCH"
4141

42-
# Get latest release tag
43-
LATEST_TAG=$(curl -s "https://api.github.com/repos/$REPO/releases/latest" | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/')
42+
# Get latest release tag (including pre-releases if latest is empty)
43+
LATEST_TAG=$(curl -s "https://api.github.com/repos/$REPO/releases" | grep '"tag_name":' | head -n 1 | sed -E 's/.*"([^"]+)".*/\1/')
4444

4545
if [ -z "$LATEST_TAG" ]; then
4646
echo "Could not find latest release. Please check $GITHUB_URL/releases"

0 commit comments

Comments
 (0)