aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/cpt-chbuild6
1 files changed, 3 insertions, 3 deletions
diff --git a/contrib/cpt-chbuild b/contrib/cpt-chbuild
index e53d903..a58d2ee 100755
--- a/contrib/cpt-chbuild
+++ b/contrib/cpt-chbuild
@@ -34,7 +34,7 @@ die() {
case "$(uname -m)" in i*86) arch=i686; esac
url="https://dl.carbslinux.org/releases/${arch:-$(uname -m)}/carbs-rootfs.tar.xz"
-cd "$cac_dir"
+cd "${cac_dir:?}"
[ -f carbs-rootfs.tar.xz ] || {
log "Downloading chroot tarball"
@@ -55,10 +55,10 @@ sh256 carbs-rootfs.tar.xz | diff - carbs-rootfs.tar.xz.sum ||
[ -d carbs-chroot ] || {
log "Extracting chroot"
mkdir -p carbs-chroot
- ( cd carbs-chroot; tar xf ../carbs-rootfs.tar.xz )
+ (cd carbs-chroot; xz -cd ../carbs-rootfs.tar.xz | pax -r)
}
-create_cache empty
+mkdir -p "${tmp_dir:?}"
log "Creating temporary chroot"
cp -a carbs-chroot "${chr_dir:=$tmp_dir/chroot}"