summaryrefslogtreecommitdiffstats
path: root/ch
diff options
context:
space:
mode:
Diffstat (limited to 'ch')
-rwxr-xr-xch12
1 files changed, 9 insertions, 3 deletions
diff --git a/ch b/ch
index d7393b2..506f38c 100755
--- a/ch
+++ b/ch
@@ -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"