cleanup workdir if debug mode is off after iso creation

This commit is contained in:
parazyd 2017-10-26 21:30:18 +02:00
parent f7c38c1457
commit ad91c94a2e
No known key found for this signature in database
GPG Key ID: F0CB28FCF78637DE
1 changed files with 4 additions and 0 deletions

View File

@ -125,6 +125,10 @@ iso_xorriso_build() {
binary || zerr
popd
unset uefi_opt
[[ "$DEBUG" = 1 ]] || {
[[ -n "$workdir" ]] && sudo rm -rf "$workdir"
}
}
iso_setup_installer() {