]> xenbits.xensource.com Git - people/sstabellini/raisin.git/commitdiff
Handle missing "which" from the system
authorStefano Stabellini <stefano.stabellini@eu.citrix.com>
Wed, 18 Mar 2015 13:03:54 +0000 (13:03 +0000)
committerStefano Stabellini <stefano.stabellini@eu.citrix.com>
Wed, 18 Mar 2015 13:03:54 +0000 (13:03 +0000)
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
build.sh

index 182deed59131af1ac19cdda700a28ae131174bbb..71f3b2a29871690f0f5f8ed83f44630dbcf17139 100755 (executable)
--- a/build.sh
+++ b/build.sh
@@ -17,7 +17,7 @@ source grub.sh
 source libvirt.sh
 
 function get_distro() {
-    if test -x "`which lsb_release`"
+    if test -x "`which lsb_release 2>/dev/null`"
     then
         os_VENDOR=`lsb_release -i -s`
         os_RELEASE=`lsb_release -r -s`