We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2a03ddf + 3d2b5b5 commit b175fd8Copy full SHA for b175fd8
install.sh
@@ -54,7 +54,7 @@ elif [ "${VERSION}" = "prerelease" ]; then
54
echo "Error: git is required to install prerelease versions" >&2
55
exit 1
56
fi
57
- VERSION="$(git ls-remote --tags "$GIT_REMOTE" | tail -1 | awk -F/ '{print $NF}')"
+ VERSION="$(git ls-remote --tags --sort "version:refname" "$GIT_REMOTE" | tail -1 | awk -F/ '{print $NF}')"
58
if [ -z "$VERSION" ]; then
59
echo "Error: Could not determine prerelease version" >&2
60
0 commit comments