mirror of
https://github.com/ddworken/hishtory.git
synced 2025-05-29 14:41:19 +02:00
Detect failures to install hishtory in install script
This commit is contained in:
parent
30ee41a6ea
commit
72bd46d4e8
@ -29,6 +29,7 @@ with urllib.request.urlopen(download_url) as response:
|
|||||||
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')
|
||||||
os.system('/tmp/hishtory-client install')
|
exitCode = os.system('/tmp/hishtory-client install')
|
||||||
# TODO: Detect if ^ failed
|
if exitCode != 0:
|
||||||
|
raise Exception("failed to install downloaded hishtory client via `/tmp/hishtory-client install`!")
|
||||||
print('Succesfully installed hishtory! Open a new terminal, try running a command, and then running `hishtory query`.')
|
print('Succesfully installed hishtory! Open a new terminal, try running a command, and then running `hishtory query`.')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user