diff options
author | midipix <writeonce@midipix.org> | 2015-12-14 04:03:37 -0500 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2015-12-14 04:03:37 -0500 |
commit | 3d1b762ff2cbf084f7b28d81783a75b9f0c37b74 (patch) | |
tree | f105f57d57203123381ae462e35f5eae2880f129 /sysinfo | |
parent | f4603994a39431c8cee036216a6d15ab7281b0c6 (diff) | |
download | sofort-3d1b762ff2cbf084f7b28d81783a75b9f0c37b74.tar.bz2 sofort-3d1b762ff2cbf084f7b28d81783a75b9f0c37b74.tar.xz |
version.sh: silent error messages in the absence of a git repository.
Diffstat (limited to 'sysinfo')
-rwxr-xr-x | sysinfo/version.sh | 2 |
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 |