From: Neil Williams Date: Fri, 2 Jan 2015 10:43:55 +0000 (+0000) Subject: Set whoami owner outside the call to sudo X-Git-Url: https://git.siccegge.de//index.cgi?a=commitdiff_plain;h=9def048429a4d28eb9e296f19222bbb437bed8ea;p=forks%2Fvmdebootstrap.git Set whoami owner outside the call to sudo --- diff --git a/examples/beagleboneblack.sh b/examples/beagleboneblack.sh index 30d0c4a..7fd44b2 100755 --- a/examples/beagleboneblack.sh +++ b/examples/beagleboneblack.sh @@ -2,8 +2,10 @@ set -e +user=`whoami` + sudo vmdebootstrap \ - --owner $(whoami) --verbose \ + --owner ${user} --verbose \ --mirror http://http.debian.net/debian \ --log beaglebone-black.log --log-level debug \ --arch armhf \ diff --git a/examples/cubietruck.sh b/examples/cubietruck.sh index a904e07..91db01a 100755 --- a/examples/cubietruck.sh +++ b/examples/cubietruck.sh @@ -2,8 +2,10 @@ set -e +user=`whoami` + sudo vmdebootstrap \ - --owner $(whoami) --verbose \ + --owner ${user} --verbose \ --size 3G \ --mirror http://http.debian.net/debian \ --log cubietruck.log --log-level debug \