diff options
author | EuAndreh <eu@euandre.org> | 2021-08-28 09:47:18 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2021-08-28 09:47:18 -0300 |
commit | 8404e1d3bada9927af7ee5dddcf4c3069933bfe9 (patch) | |
tree | 57ce0ae4fe52be4009f1ae818c59c53e7cb8e86c /aux/workflow/dist.sh | |
parent | aux/workflow/dist.sh: Run "make clean public dev-check" instead of just two a... (diff) | |
download | git-permalink-8404e1d3bada9927af7ee5dddcf4c3069933bfe9.tar.gz git-permalink-8404e1d3bada9927af7ee5dddcf4c3069933bfe9.tar.xz |
aux/workflow/dist.sh: Use -c flag from sort for simpler if expression
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 |