Accept cli flags in install script (#254)

This commit is contained in:
Munif Tanjim
2024-10-05 21:20:27 +06:00
committed by GitHub
parent 50fe1793b6
commit e55694d7e0
2 changed files with 5 additions and 1 deletions

View File

@ -53,6 +53,8 @@ os.system('chmod +x ' + tmpFilePath)
cmd = tmpFilePath + ' install'
if os.environ.get('HISHTORY_OFFLINE'):
cmd += " --offline"
if len(sys.argv) > 1:
cmd += " " + " ".join(sys.argv[1:])
exitCode = os.system(cmd)
os.remove(tmpFilePath)
if exitCode != 0: