summaryrefslogtreecommitdiff
path: root/sysinfo
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2018-12-25 05:37:11 -0500
committermidipix <writeonce@midipix.org>2018-12-25 05:39:39 -0500
commite71772893eca041304ea4edfb645dd778d4b66c3 (patch)
treeec59bfa68e1b315d75922b777578afcc501e7959 /sysinfo
parent7e73d76c20597ae2dadfb1263254f1209b21063d (diff)
downloadsbpython3-e71772893eca041304ea4edfb645dd778d4b66c3.tar.bz2
sbpython3-e71772893eca041304ea4edfb645dd778d4b66c3.tar.xz
build system: version.sh: silence git errors with a non-git source tree.
Diffstat (limited to 'sysinfo')
-rwxr-xr-xsysinfo/version.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/sysinfo/version.sh b/sysinfo/version.sh
index 6cbdc12..f510a32 100755
--- a/sysinfo/version.sh
+++ b/sysinfo/version.sh
@@ -53,8 +53,8 @@ fi
cd "$srcdir"
-gitver=$(git rev-parse --verify HEAD 2>/dev/null) || gitver="unknown"
-cvdate=$(git show -s --format=%ci $gitver) || cvdate=$(date)
+gitver=$(git rev-parse --verify HEAD 2>/dev/null) || gitver="unknown"
+cvdate=$(git show -s --format=%ci $gitver 2>/dev/null) || cvdate=$(date)
vmacro=$(printf '%s' "$prefix"'_GIT_VERSION' | tr '[:lower:]' '[:upper:]')
dmacro=$(printf '%s' "$prefix"'_GIT_DATE ' | tr '[:lower:]' '[:upper:]')