summaryrefslogtreecommitdiffstats
path: root/ch
diff options
context:
space:
mode:
Diffstat (limited to 'ch')
-rwxr-xr-xch4
1 files changed, 2 insertions, 2 deletions
diff --git a/ch b/ch
index b068b48..939087f 100755
--- a/ch
+++ b/ch
@@ -99,7 +99,7 @@ __chrootalias_resolve_create() {
__cleanup_logs() {
mkdir -p "$1/logs"
- mv "$1/"*.log "$1/"*.log.* "$1/logs/"
+ mv "$1/"*.log "$1/"*.log.* "$1/logs/" || return
gzip -f "$1/logs/"*.log "$1/logs/"*.log.{1,2,3,4,5,6,7,8,9}
}
@@ -126,7 +126,7 @@ chshell() {
chbuild() {
__chrootalias_resolve_create "$1" || return
- linux${chroot_arch} sudo makechrootpkg -l "${copydir##*/}" -r "$chrootdir" -n -- -f "${@:2}"
+ linux${chroot_arch} sudo makechrootpkg -l "${copydir##*/}" -r "$chrootdir" -n -- -f "${@:2}" || return
chshell "$1" pacman --noconfirm -Rcs namcap
__cleanup_logs "$PWD"
}