mirror of
https://github.com/ddworken/hishtory.git
synced 2025-06-19 19:37:59 +02: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:
|
with urllib.request.urlopen(download_url) as response:
|
||||||
hishtory_binary = response.read()
|
hishtory_binary = response.read()
|
||||||
|
if os.path.exists('/tmp/hishtory-client'):
|
||||||
|
os.remove('/tmp/hishtory-client')
|
||||||
with open('/tmp/hishtory-client', 'wb') as f:
|
with open('/tmp/hishtory-client', 'wb') as f:
|
||||||
f.write(hishtory_binary)
|
f.write(hishtory_binary)
|
||||||
os.system('chmod +x /tmp/hishtory-client')
|
os.system('chmod +x /tmp/hishtory-client')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user