mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-21 13:41:20 +02:00
build_image: Allow building sysexts for an existing image
by skipping the check for an existing image directory if we're not building an image. This makes './build_image sysext' work. Signed-off-by: Jeremi Piotrowski <jpiotrowski@microsoft.com>
This commit is contained in:
parent
5d5dd59102
commit
1bb108e326
@ -126,7 +126,7 @@ if [[ ${skip_test_build_root} -ne 1 ]]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Handle existing directory.
|
# Handle existing directory.
|
||||||
if [[ -e "${BUILD_DIR}" ]]; then
|
if [[ -e "${BUILD_DIR}" ]] && [[ "${PROD_IMAGE}" = 1 ]]; then
|
||||||
if [[ ${FLAGS_replace} -eq ${FLAGS_TRUE} ]]; then
|
if [[ ${FLAGS_replace} -eq ${FLAGS_TRUE} ]]; then
|
||||||
sudo rm -rf "${BUILD_DIR}"
|
sudo rm -rf "${BUILD_DIR}"
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user