Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/examples/guided.py
diff options
context:
space:
mode:
authorDylan Taylor <dylan@dylanmtaylor.com>2021-05-20 16:13:16 -0400
committerDylan Taylor <dylan@dylanmtaylor.com>2021-05-20 16:13:16 -0400
commit11c963232203d463c4fc6f9ec23f60d3b034572b (patch)
tree2ce38e0624c7e8d8c1744417bba1f9f72f341f65 /examples/guided.py
parent5d6935f9f2105aa456259a82eacb58fbafefe60a (diff)
Clean up temp files after they are run
Diffstat (limited to 'examples/guided.py')
-rw-r--r--examples/guided.py1
1 files changed, 1 insertions, 0 deletions
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'):