mirror of
https://github.com/ddworken/hishtory.git
synced 2024-11-27 18:53:57 +01:00
Update install.py to filter out -- too
This commit is contained in:
parent
a83386a812
commit
0e9176474c
@ -53,7 +53,7 @@ os.system('chmod +x ' + tmpFilePath)
|
||||
cmd = tmpFilePath + ' install'
|
||||
if os.environ.get('HISHTORY_OFFLINE'):
|
||||
cmd += " --offline"
|
||||
additional_flags = [flag for flag in sys.argv[1:] if flag.startswith("-") and flag != "-"]
|
||||
additional_flags = [flag for flag in sys.argv[1:] if flag.startswith("-") and flag != "-" and flag != "--"]
|
||||
if additional_flags:
|
||||
cmd += " " + " ".join(additional_flags)
|
||||
exitCode = os.system(cmd)
|
||||
|
Loading…
Reference in New Issue
Block a user