Unified · Split
| @@ -136,7 +136,7 @@ cleanup_chroot() { · 135 unmodified lines | |||
| 136 | umount_pseudofs | 136 | umount_pseudofs |
| 137 | 137 | ||
| 138 | # If a QEMU binary was copied in, remove that as well | 138 | # If a QEMU binary was copied in, remove that as well |
| 139 | if [ -x "$ROOTFS/usr/bin/$QEMU_BIN" ] ; then | 139 | if [ -n "$QEMU_BIN" ] && [ -x "$ROOTFS/usr/bin/$QEMU_BIN" ] ; then |
| 140 | rm "$ROOTFS/usr/bin/$QEMU_BIN" | 140 | rm "$ROOTFS/usr/bin/$QEMU_BIN" |
| 141 | fi | 141 | fi |
| 142 | } | 142 | } |