Delete the tmp client before downloading to clear macos's signature cache

This commit is contained in:
David Dworken 2022-09-21 19:01:34 -07:00
parent 7a0ed3960e
commit 3e89accf97

View File

@ -26,6 +26,8 @@ else:
with urllib.request.urlopen(download_url) as response:
hishtory_binary = response.read()
if os.path.exists('/tmp/hishtory-client'):
os.remove('/tmp/hishtory-client')
with open('/tmp/hishtory-client', 'wb') as f:
f.write(hishtory_binary)
os.system('chmod +x /tmp/hishtory-client')