]> git.siccegge.de Git - forks/vmdebootstrap.git/commitdiff
Set whoami owner outside the call to sudo
authorNeil Williams <codehelp@debian.org>
Fri, 2 Jan 2015 10:43:55 +0000 (10:43 +0000)
committerNeil Williams <codehelp@debian.org>
Fri, 2 Jan 2015 10:43:55 +0000 (10:43 +0000)
examples/beagleboneblack.sh
examples/cubietruck.sh

index 30d0c4ae7d9d4d838892c1929d5fd72c29f2db0e..7fd44b2a149319bfe42b60e400bace2d4692fd7d 100755 (executable)
@@ -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 \
index a904e0750a090519b0a2ec5814da890c09cf69d2..91db01a43803535a6fb058a035430f48c17a816b 100755 (executable)
@@ -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 \