tcleanup workdir if debug mode is off after iso creation - libdevuansdk - common library for devuan's simple distro kits
git clone https://git.parazyd.org/libdevuansdk
Log
Files
Refs
Submodules
README
LICENSE
---
commit ad91c94a2ecd10eba81ddb08f5ac212e3d9c7418
parent f7c38c1457562c08e1ba6f2c9ae37d8dd914d769
Author: parazyd 
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(-)
---
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() {