From dae78f1f9ea556548db692509ca69f477ba4185f Mon Sep 17 00:00:00 2001 From: Kyle MacLeod Date: Tue, 15 Aug 2023 18:18:36 -0400 Subject: [PATCH] Fix quoting in handle_delete causing install cleanup failure This commit fixes a quoting issue in the handle_delete function causing a cleanup error in CentOS subclouds. Test Cases PASS: run gen-bootloader-iso-centos.sh --delete option, verifying that the subcloud cleanup operation completes as expected, including the removal of /var/www/pages/iso/21.12 directory. Closes-Bug: 2031446 Signed-off-by: Kyle MacLeod Change-Id: Ia0cedb66819458e58cab50c3df05e6c4dcd86fc9 --- utilities/platform-util/scripts/gen-bootloader-iso-centos.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utilities/platform-util/scripts/gen-bootloader-iso-centos.sh b/utilities/platform-util/scripts/gen-bootloader-iso-centos.sh index ecda8d8f..e8711d7c 100755 --- a/utilities/platform-util/scripts/gen-bootloader-iso-centos.sh +++ b/utilities/platform-util/scripts/gen-bootloader-iso-centos.sh @@ -536,7 +536,7 @@ function handle_delete { rmdir "${NODE_DIR_BASE}" fi - if [ -d "${SHARED_DIR} "]; then + if [ -d "${SHARED_DIR}" ]; then rm -rf "${SHARED_DIR}" fi fi