Delete the tmp hishtory-client download since it may be dropped in CWD rather than /tmp/

This commit is contained in:
David Dworken 2024-02-09 17:41:39 -08:00
parent b10bf88ddf
commit 87b7671d22
No known key found for this signature in database

View File

@ -56,4 +56,5 @@ if os.environ.get('HISHTORY_OFFLINE'):
exitCode = os.system(cmd)
if exitCode != 0:
raise Exception("failed to install downloaded hishtory client via `" + tmpFilePath +" install` (is that directory mounted noexec? Consider setting an alternate directory via the TMPDIR environment variable)!")
os.remove(tmpFilePath)
print('Succesfully installed hishtory! Open a new terminal, try running a command, and then running `hishtory query`.')