"Fix" reg load throwing syntax errors
This commit is contained in:
parent
3fdc0e7ff5
commit
ec5c716889
|
@ -46,6 +46,16 @@ def runReg(cmd,check = True):
|
|||
cmd[1] = applyRegmap(cmd[1])
|
||||
if cmd[0] == "unload":
|
||||
if not cmd[1].startswith(regTmpPath): return
|
||||
|
||||
doAsShell = False
|
||||
if cmd[0] in ["load","unload"]:
|
||||
doAsShell = True
|
||||
index = 0
|
||||
while index < len(cmd):
|
||||
cmd[index] = cmd[index].replace("&","^&")
|
||||
if " " in cmd[index]:
|
||||
cmd[index] = '"' +cmd[index]+ '"'
|
||||
index += 1
|
||||
cmd = ["reg"] + cmd
|
||||
try:
|
||||
if dummyMode:
|
||||
|
|
Loading…
Reference in New Issue