summaryrefslogtreecommitdiff
path: root/net-libs/libcork/files/libcork-0.15.0-version.patch
blob: 64cef927443d99a68503ac5693924957a6a88e62 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff --git a/version.sh b/version.sh
index 40e8d05..e06443f 100755
--- a/version.sh
+++ b/version.sh
@@ -17,8 +17,8 @@
 # Note that the RELEASE-VERSION file should *not* be checked into git;
 # please add it to your top-level .gitignore file.
 
-version=$(git describe)
-if [ -n ${version} ]; then
+[ -d .git ] && version=$(git describe)
+if [ -n "${version}" ]; then
     # If we got something from git-describe, write the version to the
     # output file.
     echo ${version} > RELEASE-VERSION