From 11c963232203d463c4fc6f9ec23f60d3b034572b Mon Sep 17 00:00:00 2001 From: Dylan Taylor Date: Thu, 20 May 2021 16:13:16 -0400 Subject: Clean up temp files after they are run --- examples/guided.py | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/guided.py b/examples/guided.py index 34aacf67..7c93ac16 100644 --- a/examples/guided.py +++ b/examples/guided.py @@ -385,6 +385,7 @@ def perform_installation(mountpoint): temp_script.write(command) execution_output = SysCommand(f"arch-chroot /mnt bash /var/tmp/user-command.{index}.sh") archinstall.log(execution_output) + os.unlink(f"/mnt/var/tmp/user-command.{index}.sh") installation.log("For post-installation tips, see https://wiki.archlinux.org/index.php/Installation_guide#Post-installation", fg="yellow") if not archinstall.arguments.get('silent'): -- cgit v1.2.3-54-g00ecf