File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -18,9 +18,9 @@ case "$ARCH" in
1818 * ) echo " Unsupported architecture: $ARCH " ; exit 1 ;;
1919esac
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"
3333fi
3434
3535BINARY_NAME=" vibeaura-${OS} -${ARCH} "
36- if [ " $OS " == " windows" ]; then
36+ if [ " $OS " = " windows" ]; then
3737 BINARY_NAME+=" .exe"
3838fi
3939
4040echo " 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
4545if [ -z " $LATEST_TAG " ]; then
4646 echo " Could not find latest release. Please check $GITHUB_URL /releases"
You can’t perform that action at this time.
0 commit comments