diff options
Diffstat (limited to 'src/scripts/version')
-rwxr-xr-x | src/scripts/version | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/scripts/version b/src/scripts/version index 455ab760352..b8748af1588 100755 --- a/src/scripts/version +++ b/src/scripts/version @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright (c) 2015 Cisco and/or its affiliates. # Licensed under the Apache License, Version 2.0 (the "License"); @@ -20,7 +20,7 @@ cd "$path" if [ -f .version ]; then vstring=$(cat .version) else - vstring=$(git describe --long) + vstring=$(git describe --long --match "v*") if [ $? != 0 ]; then exit 1 fi |