diff --git a/mklni b/mklni index a0553c9..22ab630 100755 --- a/mklni +++ b/mklni @@ -281,8 +281,13 @@ remove_chroot() log "Failed to umount chroot" error exit 1 } + { + rm -rf "${CHROOTDIR:?}/" && log "Done!" - rm -rf "${CHROOTDIR:?}/" + } || { + log "Failed to remove chroot" error + exit 1 + } } chroot_into()