]> xenbits.xensource.com Git - raisin.git/commitdiff
Cope with which not being present
authorStefano Stabellini <stefano.stabellini@eu.citrix.com>
Wed, 18 Mar 2015 15:45:07 +0000 (15:45 +0000)
committerStefano Stabellini <stefano.stabellini@eu.citrix.com>
Wed, 18 Mar 2015 15:45:07 +0000 (15:45 +0000)
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
build.sh

index 48a8bac0ad79bdaca22bad630df37ab642915de3..753a0a72e5ef2610acbcb39d7a0f134a358c9e3f 100755 (executable)
--- a/build.sh
+++ b/build.sh
@@ -22,7 +22,7 @@ source libvirt.sh
 if test $EUID -eq 0
 then
     export SUDO=""
-elif test ! -f `which sudo`
+elif test ! -f `which sudo 2>/dev/null`
 then
     echo "Raixen requires sudo to install build dependencies for you."
     echo "Please install sudo, then run this script again."