1
0
mirror of https://codeberg.org/kiss-community/kiss synced 2024-09-28 12:22:39 -06:00

kiss-chbuild: Allow packages passed on the command-line. Closes #153

This commit is contained in:
Dylan Araps 2020-05-14 10:22:50 +03:00
parent d73cb5b463
commit a7f9204ecf
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E

View File

@ -31,5 +31,8 @@ cd "${cac_dir:=$KISS_ROOT${XDG_CACHE_HOME:-$HOME/.cache}/kiss}"
log "Creating temporary chroot"
cp -a kiss-chroot "chroot-$$"
log "Installing any arguments"
[ ! "$1" ] || KISS_ROOT=$PWD/chroot-$$ kiss i "$@"
log "Entering chroot"
su -c "kiss-chroot chroot-$$; rm -rf chroot-$$"