summaryrefslogtreecommitdiff
path: root/sysinfo
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2015-12-14 05:58:56 -0500
committermidipix <writeonce@midipix.org>2016-11-10 23:35:33 -0500
commit4eb4f9a7602f4397d75396f76a13c636c451dcfc (patch)
treefd581bed03190eadc02d9bf3820566b32d7b0a23 /sysinfo
parentc0d0f387ec6bd1297f4dd9f641aa115225ab58d2 (diff)
downloadperk-4eb4f9a7602f4397d75396f76a13c636c451dcfc.tar.bz2
perk-4eb4f9a7602f4397d75396f76a13c636c451dcfc.tar.xz
version.sh: silent error messages in the absence of a git repository.
Diffstat (limited to 'sysinfo')
-rwxr-xr-xsysinfo/version.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysinfo/version.sh b/sysinfo/version.sh
index fb1e8c3..8157765 100755
--- a/sysinfo/version.sh
+++ b/sysinfo/version.sh
@@ -51,7 +51,7 @@ fi
cd "$srcdir" || exit 2
-gitver=`git rev-parse --verify HEAD` || gitver="unknown"
+gitver=`git rev-parse --verify HEAD 2>/dev/null` || gitver="unknown"
macro=`echo "$prefix"_GIT_VERSION | tr '[:lower:]' '[:upper:]'`
cd "$workdir" || exit 2