From: Stefano Stabellini Date: Fri, 24 Apr 2015 10:40:10 +0000 (+0000) Subject: raisin: do not exit if sudo is not installed. X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=579c61facb711b85d2a4a78cd7d0d1efdebc916f;p=raisin.git raisin: do not exit if sudo is not installed. Signed-off-by: Stefano Stabellini --- diff --git a/lib/common-functions.sh b/lib/common-functions.sh index 3b512d1..d38788b 100644 --- a/lib/common-functions.sh +++ b/lib/common-functions.sh @@ -25,8 +25,8 @@ function common_init() { elif [[ ! -f `which sudo 2>/dev/null` ]] then echo "Raisin requires sudo to install build dependencies for you." - echo "Please install sudo, then run this script again." - exit 1 + echo "You can only build without it." + export SUDO="" fi if [[ -z "$BASH_VERSINFO" || ${BASH_VERSINFO[0]} -lt 3 ||