From 4eb4f9a7602f4397d75396f76a13c636c451dcfc Mon Sep 17 00:00:00 2001 From: midipix Date: Nov 11 2016 04:35:33 +0000 Subject: version.sh: silent error messages in the absence of a git repository. --- 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