edit-chroot: Fix spinner to check for command's exit status.