aboutsummaryrefslogtreecommitdiffstats
path: root/src/scripts/version
diff options
context:
space:
mode:
Diffstat (limited to 'src/scripts/version')
-rwxr-xr-xsrc/scripts/version12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/scripts/version b/src/scripts/version
index d92eb8b7..d8728a9f 100755
--- a/src/scripts/version
+++ b/src/scripts/version
@@ -4,16 +4,12 @@ path=$( cd "$(dirname "${BASH_SOURCE}")" ; pwd -P )
cd "$path"
-git rev-parse 2> /dev/null
-if [ $? == 0 ]; then
- vstring=$(git describe)
-elif [ -f .version ]; then
+if [ -f .version ]; then
vstring=$(cat .version)
else
- if [ -f ../rpm/*.gz ]; then
- vstring=$(ls ../rpm/*.gz)
- else
- exit 1
+ vstring=$(git describe)
+ if [ $? != 0 ]; then
+ exit 1
fi
fi