0
0
Fork 0
mirror of https://github.com/netdata/netdata.git synced 2025-04-13 09:11:50 +00:00

fix: the cleanup was not performed during the kickstart.sh dry run ()

This commit is contained in:
Ilya Mashchenko 2023-08-15 15:41:34 +03:00 committed by GitHub
parent 0f0e65922e
commit c2cdcc63d2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -414,6 +414,7 @@ success_banner() {
cleanup() {
if [ -z "${NO_CLEANUP}" ] && [ -n "${tmpdir}" ]; then
cd || true
DRY_RUN=0
run_as_root rm -rf "${tmpdir}"
fi
}