diff --git a/build_tools/build_detect_version b/build_tools/build_detect_version index ae9e39174..eef905d8e 100755 --- a/build_tools/build_detect_version +++ b/build_tools/build_detect_version @@ -15,7 +15,7 @@ trap "rm $VFILE" EXIT which git > /dev/null if [ "$?" = 0 ]; then - env -i git rev-parse HEAD | + env -i git rev-parse HEAD 2>&1 | awk ' BEGIN { print "#include \"build_version.h\"\n"