From 2838225f441d2c6012472e7c0acdb7725b56c77b Mon Sep 17 00:00:00 2001 From: Jason Mehring Date: Mon, 10 Nov 2014 10:47:27 -0500 Subject: [PATCH] Made sure color chroot function returned shell exit status and not trigger error within that function --- functions.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/functions.sh b/functions.sh index ccbcb71..52ae51c 100755 --- a/functions.sh +++ b/functions.sh @@ -67,8 +67,7 @@ if [ "${VERBOSE}" -ge 2 -o "${DEBUG}" == "1" ]; then chroot() { local retval true ${blue} - /usr/sbin/chroot "$@" - retval=$? + /usr/sbin/chroot "$@" && { retval=$?; true; } || { retval=$?; true; } true ${reset} return $retval }