]> git.seodisparate.com - AnotherAURHelper/commitdiff
Remove tempfile created when setting up sccache
authorStephen Seo <seo.disparate@gmail.com>
Wed, 7 Sep 2022 07:09:48 +0000 (16:09 +0900)
committerStephen Seo <seo.disparate@gmail.com>
Wed, 7 Sep 2022 07:09:48 +0000 (16:09 +0900)
update.py

index e6b24c2d9aac384419147c319524b6d2f3be6d62..9c9803a35e15997bb99ac3b0a3caa626c776dc5c 100755 (executable)
--- a/update.py
+++ b/update.py
@@ -650,6 +650,15 @@ def create_executable_script(dest_filename, script_contents):
             ],
             check=True,
         )
+        subprocess.run(
+            [
+                "/usr/bin/env",
+                "rm",
+                "-f",
+                tempf_name,
+            ],
+            check=True,
+        )
     except subprocess.CalledProcessError:
         log_print(
             f'ERROR: Failed to create executable script "{dest_filename}"'