mirror of
https://github.com/systemd/systemd.git
synced 2025-03-21 02:50:18 +03:00
build-sys: hide error message from grep
This commit is contained in:
parent
2fd8b540c9
commit
c87f7103fe
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user