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 <kyle.macleod@windriver.com>
Change-Id: Ia0cedb66819458e58cab50c3df05e6c4dcd86fc9
This commit is contained in:
Kyle MacLeod 2023-08-15 18:18:36 -04:00
parent 9518668f20
commit dae78f1f9e
1 changed files with 1 additions and 1 deletions

View File

@ -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