Commit ebdc3429 authored by Markus Frosch's avatar Markus Frosch
Browse files

deb: Add ICINGA_BUILD_CLEANUP flag

parent 69195f41
Pipeline #7411 passed with stage
in 31 seconds
......@@ -91,8 +91,10 @@ echo "[ Running Lintian ]"
lintian | tee ../lintian-binary.log
) || [ "${ICINGA_BUILD_IGNORE_LINT}" -eq 1 ]
echo "[ Cleanup Build Directory ]"
(
set -ex
rm -rf "${BUILDDIR:?}/${ICINGA_BUILD_PROJECT}/"
)
if [ "${ICINGA_BUILD_CLEANUP:=1}" -gt 0 ]; then
echo "[ Cleanup Build Directory ]"
(
set -ex
rm -rf "${BUILDDIR:?}/${ICINGA_BUILD_PROJECT}/"
)
fi
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment