From 0366b14d0b540500fb2051a39962717e44df3038 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Harald=20Jens=C3=A5s?= Date: Tue, 6 Sep 2022 17:32:33 +0200 Subject: [PATCH] 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 --- scripts/tripleo-mount-image | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/tripleo-mount-image b/scripts/tripleo-mount-image index c4266d410..57b3b9a08 100755 --- a/scripts/tripleo-mount-image +++ b/scripts/tripleo-mount-image @@ -336,7 +336,7 @@ else fi fi mount_image - if [ -n $CHROOT ]; then + if [ -n "${CHROOT}" ]; then start_chroot fi -fi \ No newline at end of file +fi