From d51430cc10d6b94cbdf1c5a6242af0b1f0e0e7e9 Mon Sep 17 00:00:00 2001 From: Stephen Seo Date: Wed, 7 Sep 2022 16:09:48 +0900 Subject: [PATCH] Remove tempfile created when setting up sccache --- update.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/update.py b/update.py index e6b24c2..9c9803a 100755 --- 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}"'