summaryrefslogtreecommitdiffstats
path: root/make_version.sh
diff options
context:
space:
mode:
authorAndrei Warkentin <andrey.warkentin@gmail.com>2015-05-12 06:47:54 -0400
committerStewart Smith <stewart@linux.vnet.ibm.com>2015-05-18 13:52:27 +1000
commitd30adfc24a4baec55f21ff84df8a93e750273e68 (patch)
treee4ed9877694f0267663dbe7b3b9e1071f1914a0b /make_version.sh
parent87fc0d51e165d3a0f711db7deba2c5db45972bda (diff)
downloadtalos-skiboot-d30adfc24a4baec55f21ff84df8a93e750273e68.tar.gz
talos-skiboot-d30adfc24a4baec55f21ff84df8a93e750273e68.zip
skiboot: detect version correctly as a git submodule
When checked-out as a submodule, .git is a file, not a dir. Signed-off-by: Andrei Warkentin <andrey.warkentin@gmail.com> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'make_version.sh')
-rwxr-xr-xmake_version.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/make_version.sh b/make_version.sh
index 1dfbe4cd..860c1241 100755
--- a/make_version.sh
+++ b/make_version.sh
@@ -1,6 +1,6 @@
#!/bin/bash
-if test -d .git;
+if test -e .git;
then
version=`git describe --exact-match 2>/dev/null`
if [ -z "$version" ];
OpenPOWER on IntegriCloud