mirror of
https://github.com/ddworken/hishtory.git
synced 2025-01-11 16:58:47 +01: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:
|
||||
f.write(hishtory_binary)
|
||||
os.system('chmod +x /tmp/hishtory-client')
|
||||
os.system('/tmp/hishtory-client install')
|
||||
# TODO: Detect if ^ failed
|
||||
exitCode = os.system('/tmp/hishtory-client install')
|
||||
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`.')
|
||||
|
Loading…
Reference in New Issue
Block a user