Fix condition for CHROOT, missing quotes

The condition controlling if start_chroot should run was
always evaluating to true, so the start_chroot function was
called even when --chroot option was not used.

Adding quotes, and curly braces, on the $CHROOT variable should
fix the issue.

Closes-Bug: #1988808
Change-Id: I318809454924a342750c6044f56ec05893a8da25
This commit is contained in:
Harald Jensås 2022-09-06 17:32:33 +02:00
parent 9fb9b05f5e
commit 0366b14d0b

View File

@ -336,7 +336,7 @@ else
fi
fi
mount_image
if [ -n $CHROOT ]; then
if [ -n "${CHROOT}" ]; then
start_chroot
fi
fi
fi