Made sure color chroot function returned shell exit status and not trigger error within that function
This commit is contained in:
parent
55d06dc83d
commit
2838225f44
@ -67,8 +67,7 @@ if [ "${VERBOSE}" -ge 2 -o "${DEBUG}" == "1" ]; then
|
|||||||
chroot() {
|
chroot() {
|
||||||
local retval
|
local retval
|
||||||
true ${blue}
|
true ${blue}
|
||||||
/usr/sbin/chroot "$@"
|
/usr/sbin/chroot "$@" && { retval=$?; true; } || { retval=$?; true; }
|
||||||
retval=$?
|
|
||||||
true ${reset}
|
true ${reset}
|
||||||
return $retval
|
return $retval
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user