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:
parent
9fb9b05f5e
commit
0366b14d0b
@ -336,7 +336,7 @@ else
|
||||
fi
|
||||
fi
|
||||
mount_image
|
||||
if [ -n $CHROOT ]; then
|
||||
if [ -n "${CHROOT}" ]; then
|
||||
start_chroot
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user