mirror of
https://github.com/ddworken/hishtory.git
synced 2025-06-20 11:57:50 +02: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'
|
cmd = tmpFilePath + ' install'
|
||||||
if os.environ.get('HISHTORY_OFFLINE'):
|
if os.environ.get('HISHTORY_OFFLINE'):
|
||||||
cmd += " --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:
|
if additional_flags:
|
||||||
cmd += " " + " ".join(additional_flags)
|
cmd += " " + " ".join(additional_flags)
|
||||||
exitCode = os.system(cmd)
|
exitCode = os.system(cmd)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user