mirror of
https://github.com/mendableai/firecrawl.git
synced 2024-11-16 11:42:24 +08:00
6 lines
244 B
Bash
Executable File
6 lines
244 B
Bash
Executable File
ORIGIN=${ORIGIN:-origin}
|
|
|
|
version=$(git fetch --tags "${ORIGIN}" &>/dev/null | git -c "versionsort.prereleasesuffix=-pre" tag -l --sort=version:refname | grep -v dev | grep -vE '^v2$' | grep -vE '^v1$' | tail -n1 | cut -c 2-)
|
|
|
|
echo "$version"
|