From: Michael Prokop Date: Tue, 25 May 2010 14:55:14 +0000 (+0200) Subject: grml-chroot: exit with according exit code. X-Git-Tag: v1.3.2~1 X-Git-Url: http://git.grml.org/?p=grml-scripts-core.git;a=commitdiff_plain;h=3b069a494fe989e75be26e5bc50efd8bb35d3109 grml-chroot: exit with according exit code. --- 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