Skip to content

Commit 0d0976a

Browse files
monorkinCopilot
andcommitted
Add support for pre-release versions and betas
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 1880ace commit 0d0976a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scripts/install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ esac
2323
# Fetch latest version
2424
echo "Fetching latest version..."
2525
VERSION=$(curl -sI "https://github.com/$REPO/releases/latest" | grep -i '^location:' | sed 's/.*tag\///' | tr -d '\r\n')
26-
if ! [[ "$VERSION" =~ ^v?[0-9]+\.[0-9]+\.[0-9]+ ]]; then
26+
if ! [[ "$VERSION" =~ ^v?[0-9]+\.[0-9]+\.[0-9]+(-[0-9A-Za-z.-]+)?(\+[0-9A-Za-z.-]+)?$ ]]; then
2727
echo "Failed to determine latest version"
2828
exit 1
2929
fi

0 commit comments

Comments
 (0)