Update install.py to filter out -- too

This commit is contained in:
David Dworken 2024-10-19 01:28:11 -07:00
parent a83386a812
commit 0e9176474c
No known key found for this signature in database

View File

@ -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)