tcleanup workdir if debug mode is off after iso creation - libdevuansdk - common library for devuan's simple distro kits (HTM) git clone https://git.parazyd.org/libdevuansdk (DIR) Log (DIR) Files (DIR) Refs (DIR) Submodules (DIR) README (DIR) LICENSE --- (DIR) commit ad91c94a2ecd10eba81ddb08f5ac212e3d9c7418 (DIR) parent f7c38c1457562c08e1ba6f2c9ae37d8dd914d769 (HTM) Author: parazyd <parazyd@dyne.org> Date: Thu, 26 Oct 2017 21:30:18 +0200 cleanup workdir if debug mode is off after iso creation Diffstat: M zlibs/iso | 4 ++++ 1 file changed, 4 insertions(+), 0 deletions(-) --- (DIR) diff --git a/zlibs/iso b/zlibs/iso t@@ -125,6 +125,10 @@ iso_xorriso_build() { binary || zerr popd unset uefi_opt + + [[ "$DEBUG" = 1 ]] || { + [[ -n "$workdir" ]] && sudo rm -rf "$workdir" + } } iso_setup_installer() {