It should redirect stdout to /dev/null firstly,
then redirect stderr to whatever stdout currently points at.
Change-Id: I4666fa90a96301f0b504a8501f0ffc3fe17616b0
... | ... |
@@ -332,7 +332,7 @@ function configure_nova { |
332 | 332 |
if [ ! -e /dev/kvm ]; then |
333 | 333 |
echo "WARNING: Switching to QEMU" |
334 | 334 |
LIBVIRT_TYPE=qemu |
335 |
- if which selinuxenabled 2>&1 > /dev/null && selinuxenabled; then |
|
335 |
+ if which selinuxenabled >/dev/null 2>&1 && selinuxenabled; then |
|
336 | 336 |
# https://bugzilla.redhat.com/show_bug.cgi?id=753589 |
337 | 337 |
sudo setsebool virt_use_execmem on |
338 | 338 |
fi |