]> xenbits.xensource.com Git - people/sstabellini/raisin.git/commitdiff
raisin: do not exit if sudo is not installed.
authorStefano Stabellini <stefano.stabellini@eu.citrix.com>
Fri, 24 Apr 2015 10:40:10 +0000 (10:40 +0000)
committerStefano Stabellini <stefano.stabellini@eu.citrix.com>
Fri, 24 Apr 2015 10:40:10 +0000 (10:40 +0000)
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
lib/common-functions.sh

index 3b512d158a9bab15caebb499cc2fd252dea4a03b..d38788bafed7b5a6a6b6798c9c9f65fc299e3f28 100644 (file)
@@ -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 ||