diff options
-rwxr-xr-x | ch | 12 |
1 files changed, 9 insertions, 3 deletions
@@ -98,9 +98,10 @@ chshell() { } chbuild() { - __chrootalias "$1" || return - linux${chroot_arch} sudo makechrootpkg -l "${copydir##*/}" -r "$chrootdir" -n -- -f - chshell "$1" "pacman --noconfirm -Rcs namcap" + chrootalias="$1"; shift + __chrootalias "$chrootalias" || return + linux${chroot_arch} sudo makechrootpkg -l "${copydir##*/}" -r "$chrootdir" -n -- -f "$@" + chshell "$chrootalias" "pacman --noconfirm -Rcs namcap" } chinstall() { @@ -139,6 +140,11 @@ chupdate() { command=$1; shift case $command in + repack) + for arg; do + chbuild "$arg" -R + done + ;; build) for arg; do chbuild "$arg" |