bootstrap: also rm directories

This commit is contained in:
tschettervictor
2025-12-02 11:44:43 -07:00
committed by GitHub
parent 2635758cfe
commit 3d61def308

View File

@@ -177,7 +177,8 @@ cleanup_directories() {
zfs destroy "${bastille_zfs_zpool:?}/${bastille_zfs_prefix:?}/releases/${RELEASE}"
fi
fi
elif [ -d "${bastille_cachedir}/${RELEASE}" ]; then
fi
if [ -d "${bastille_cachedir}/${RELEASE}" ]; then
if [ -d "${bastille_cachedir}/${RELEASE}" ]; then
rm -rf "${bastille_cachedir:?}/${RELEASE}"
fi