From bc7d76b966f85409e6c1095873d0ce29a63627b4 Mon Sep 17 00:00:00 2001 From: Manfred Touron Date: Wed, 15 Oct 2014 14:57:44 +0000 Subject: [PATCH] fixed clean_target + renamed chroot_in_target to do_in_target --- images/lib.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/images/lib.sh b/images/lib.sh index e78ee50..52ed707 100644 --- a/images/lib.sh +++ b/images/lib.sh @@ -51,20 +51,20 @@ patch_target() { clean_target() { clean_paths=$1 + echo apt-get clean | do_in_target for path in $clean_paths; do if [ -e "$TARGET/$path" ]; then sudo rm -rf "$TARGET/$path" fi done - echo apt-get clean | sudo chroot "$TARGET" } archive_target() { sudo tar -C "$TARGET" -czf "$NAME.tar.gz" . } -chroot_in_target() { - chroot "$TARGET" +do_in_target() { + sudo chroot "$TARGET" $@ } cli() {