Skip to content

Commit

Permalink
scripts: add an optional short argument
Browse files Browse the repository at this point in the history
  • Loading branch information
roobre committed Aug 28, 2024
1 parent 38c8979 commit 7d4bd6f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion scripts/version
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
#!/bin/sh

git describe --dirty --tags --long --always
args=""
if [ "$1" != "short" ]; then
args="--long"
fi

git describe --dirty --tags --always $args

0 comments on commit 7d4bd6f

Please sign in to comment.