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 Oct 11, 2024
1 parent 9d9bbad commit 8ef7f3d
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 8ef7f3d

Please sign in to comment.