aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormerakor <cem@ckyln.com>2020-03-18 12:08:34 +0000
committermerakor <cem@ckyln.com>2020-03-18 12:08:34 +0000
commit604bb3ce800075c94ebacda677beb73e2cf69642 (patch)
tree02634d6ff29d944a28c3d72dcc92a131d061945b
parent866c8be2da15cd65430c3b4a1ffb73cf6b63c74c (diff)
downloadcpt-604bb3ce800075c94ebacda677beb73e2cf69642.tar.gz
modify kiss-chbuild
FossilOrigin-Name: 1e6f5a2cb8997fff0a821d035d1fe848c25a8beb9b7e07ee57a7a11d55f0039f
-rwxr-xr-xcontrib/kiss-chbuild13
1 files changed, 6 insertions, 7 deletions
diff --git a/contrib/kiss-chbuild b/contrib/kiss-chbuild
index 28a1544..9df18cc 100755
--- a/contrib/kiss-chbuild
+++ b/contrib/kiss-chbuild
@@ -8,27 +8,26 @@ log() {
clean() {
log "Destroying chroot"
-
su -c "rm -rf chroot-$pid" || clean
}
pid=$$
-url=https://github.com/kisslinux/repo/releases/download/1.9.0/
cd "${cac_dir:=$KISS_ROOT${XDG_CACHE_HOME:-$HOME/.cache}/kiss}"
-[ -f kiss-chroot.tar.xz ] || {
+[ -f carbs-rootfs.tar.xz ] || {
log "Downloading chroot tarball"
- wget "$url/kiss-chroot.tar.xz"
+ wget https://dl.carbslinux.org/releases/carbs-rootfs.tar.xz
}
-[ -d kiss-chroot ] || {
+[ -d carbs-chroot ] || {
log "Extracting chroot"
- tar xvf kiss-chroot.tar.xz
+ mkdir -p carbs-chroot
+ tar xvf carbs-rootfs.tar.xz -C carbs-chroot
}
log "Creating temporary chroot"
-cp -a kiss-chroot "chroot-$pid"
+cp -a carbs-chroot "chroot-$pid"
trap clean EXIT INT