Currently fab-chroot only exits non-zero if the actual fab command itself fails (e.g. chroot path does not exit). If the command run within the chroot fails, it will exit 0 regardless of the command's exit code. Here's an example:
# fab-chroot build/root.patched "pretend_command"
/bin/bash: line 1: pretend_command: command not found
# echo $?
0
Currently
fab-chrootonly exits non-zero if the actual fab command itself fails (e.g. chroot path does not exit). If the command run within the chroot fails, it will exit 0 regardless of the command's exit code. Here's an example: