minor fixes
[automated-distro-installer] / lk
diff --git a/lk b/lk
index 5bd5833d158363576beaf82744012334dbf79615..51b91d955d5d637a8f49c59c3f345bd96053b23d 100644 (file)
--- a/lk
+++ b/lk
@@ -42,7 +42,7 @@ if grep -q ID=ubuntu /etc/os-release; then
     # add universe, pxe-kexec is there
     sed -ri '/^\s*deb/{/universe/!s/$/ universe/}' /etc/apt/sources.list
 fi
-if ! type -p pxe-kexec &>/dev/null; then
+if ! type -p pxe-kexec >/dev/null 2>&1; then
     apt-get update
     apt-get install -y debconf
     debconf-set-selections <<EOF