From f1a68f256276e678b11a9496ca8095befc94ea10 Mon Sep 17 00:00:00 2001 From: Stefano Stabellini Date: Wed, 18 Mar 2015 15:45:07 +0000 Subject: [PATCH] Cope with which not being present Signed-off-by: Stefano Stabellini --- build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.sh b/build.sh index 48a8bac..753a0a7 100755 --- 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." -- 2.39.5