From 3b069a494fe989e75be26e5bc50efd8bb35d3109 Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Tue, 25 May 2010 16:55:14 +0200 Subject: [PATCH] grml-chroot: exit with according exit code. --- usr_sbin/grml-chroot | 3 +++ 1 file changed, 3 insertions(+) diff --git a/usr_sbin/grml-chroot b/usr_sbin/grml-chroot index a53412c..b3d1184 100755 --- a/usr_sbin/grml-chroot +++ b/usr_sbin/grml-chroot @@ -90,8 +90,11 @@ mountit "sysfs" "sys" mountit "/dev" "dev" "--bind" if (( $# < 1 )); then chroot "$DEST_" + RC=$? else chroot "$DEST_" "$@" + RC=$? fi umount_all +exit $RC -- 2.1.4