1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-10-27 01:55:32 +03:00

build-sys: hide error message from grep

This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2012-07-22 14:10:51 +02:00
parent 2fd8b540c9
commit c87f7103fe

View File

@ -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