History

Check QEMU_BIN is not empty for cleanup_chroot, when building for same arch, QEMU_BIN would not be set, the condition fallsback to /usr/bin, which is executable

Yi Zhang committed 5 years ago

Commit 649fd9e1 parent ae05e371 file · +1 −1Browse files

Unified · Split

lib.sh.in+1−1
@@ -136,7 +136,7 @@ cleanup_chroot() { · 135 unmodified lines
136 umount_pseudofs136 umount_pseudofs
137 137
138 # If a QEMU binary was copied in, remove that as well138 # If a QEMU binary was copied in, remove that as well
139 if [ -x "$ROOTFS/usr/bin/$QEMU_BIN" ] ; then139 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 fi141 fi
142}142}

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t