diff options
Diffstat (limited to 'aux/workflow/dist.sh')
-rwxr-xr-x | aux/workflow/dist.sh | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/aux/workflow/dist.sh b/aux/workflow/dist.sh index 1156474..a433478 100755 --- a/aux/workflow/dist.sh +++ b/aux/workflow/dist.sh @@ -53,8 +53,7 @@ if git show "$VVERSION" 1>/dev/null 2>/dev/null; then exit 1 fi -TAG_LIST="$(printf '%s\n%s\n' "$(git tag)" "$VVERSION")" -if [ "$TAG_LIST" != "$(echo "$TAG_LIST" | sort -t. -n -k1 -k2 -k3)" ]; then +if ! printf '%s\n%s\n' "$(git tag)" "$VVERSION" | sort -nct. -k1 -k2 -k3; then echo 'New tag is not bigger than existing ones.' >&2 exit 1 fi |