mirror of
https://github.com/ddworken/hishtory.git
synced 2025-01-22 22:28:51 +01:00
Delete the tmp client before downloading to clear macos's signature cache
This commit is contained in:
parent
7a0ed3960e
commit
3e89accf97
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user