From 9def048429a4d28eb9e296f19222bbb437bed8ea Mon Sep 17 00:00:00 2001 From: Neil Williams Date: Fri, 2 Jan 2015 10:43:55 +0000 Subject: [PATCH] Set whoami owner outside the call to sudo --- examples/beagleboneblack.sh | 4 +++- examples/cubietruck.sh | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) 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 \ -- 2.39.5