Fix unpacking of existing chroot tarball
authorChristian Hofstaedtler <ch@grml.org>
Tue, 6 Dec 2011 00:52:20 +0000 (01:52 +0100)
committerChristian Hofstaedtler <ch@grml.org>
Tue, 6 Dec 2011 00:52:53 +0000 (01:52 +0100)
This can never have worked. Must have been quite late...

grml-live

index 1e8ddad..8b3ac13 100755 (executable)
--- a/grml-live
+++ b/grml-live
@@ -516,8 +516,7 @@ if [ -n "${UNPACK_CHROOT}" ]; then
   log "Unpacking chroot from ${UNPACK_CHROOT}"
   einfo "Unpacking chroot from ${UNPACK_CHROOT}"
   [ -d "$CHROOT_OUTPUT" ] || mkdir -p "${CHROOT_OUTPUT}"
-  tar -xf "${UNPACK_CHROOT}" -C "${CHROOT_OUTPUT}/" --strip-components 1 | RC=$?
-  echo $RC
+  tar -xf "${UNPACK_CHROOT}" -C "${CHROOT_OUTPUT}/" --strip-components 1 ; RC=$?
   if [ "$RC" != 0 ] ; then
     eend 1
     bailout 1