From: Zbigniew Jędrzejewski-Szmek Date: Sun, 22 Jul 2012 12:10:51 +0000 (+0200) Subject: build-sys: hide error message from grep X-Git-Tag: v188~108 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=c87f7103fe38434f0b88df5c2b080c7b558feabf build-sys: hide error message from grep --- diff --git a/configure.ac b/configure.ac index b715a3440..cef2539e2 100644 --- a/configure.ac +++ b/configure.ac @@ -509,7 +509,7 @@ if test "z$with_distro" = "z"; then if test "$cross_compiling" = yes; then AC_MSG_WARN([Target distribution cannot be reliably detected when cross-compiling. You should specify it with --with-distro (see $0 --help for recognized distros)]) else - with_distro=$($GREP '^ID=' /etc/os-release | $SED 's/ID=//'); + with_distro=$($GREP '^ID=' /etc/os-release 2>/dev/null | $SED 's/ID=//'); fi if test "z$with_distro" = "z"; then with_distro=other