diff --git a/scripts/version b/scripts/version index b559274a0..0cc41b691 100755 --- a/scripts/version +++ b/scripts/version @@ -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