Skip to content

Commit fcfe2fe

Browse files
committed
switch to gnu tools on macos
1 parent 7452a05 commit fcfe2fe

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

scripts/cleanup-tags

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
#!/bin/bash
22
set -u -e -E
33

4+
SORT=gsort
5+
HEAD=ghead
6+
47
mkdir -p target
5-
git tag | sort -V | head -n -5 > target/to_be_deleted
8+
git tag | $SORT -V | $HEAD -n -5 > target/to_be_deleted
69
cat target/to_be_deleted
710

811
echo "These tags will be deleted! If you are unsure, hit Ctrl-C NOW!"

0 commit comments

Comments
 (0)