diff options
author | Karl Ramm <kcr@1ts.org> | 2013-10-25 13:33:59 -0400 |
---|---|---|
committer | Karl Ramm <kcr@1ts.org> | 2013-10-25 13:33:59 -0400 |
commit | a08c1b3609cb2d9c95fa228dd60c85308b2ecacd (patch) | |
tree | a19a69aeecceb166ee564f5151b76b3d1e4d5988 | |
parent | 0eb1e9eff91dbd080114e956155e03d29c401ac4 (diff) |
only grab the last chunk of the branch
-rwxr-xr-x | get_vers.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/get_vers.sh b/get_vers.sh index c67a173..2f7f2a4 100755 --- a/get_vers.sh +++ b/get_vers.sh @@ -12,7 +12,7 @@ elif test -d ${top_srcdir}/.git; then if test "$REF" = "fatal: ref HEAD is not a symbolic ref"; then VERSION="$VERSION: detached head" else - VERSION="$VERSION $(echo $REF | tr 'a-z-' 'A-Z ')" + VERSION="$VERSION $(echo $REF | awk -F/ '{print $NF}' | tr 'a-z-' 'A-Z ')" fi fi fi |