mirror of https://git.48k.eu/ogclient
Handle scripts that end in \r
parent
bf69d20966
commit
bb9ec5d7a5
|
@ -55,7 +55,7 @@ def reboot():
|
||||||
|
|
||||||
def execCMD(request, ogRest):
|
def execCMD(request, ogRest):
|
||||||
cmd = request.getrun()
|
cmd = request.getrun()
|
||||||
cmds = cmd.split(";|\n")
|
cmds = cmd.split(";|\n\r")
|
||||||
try:
|
try:
|
||||||
ogRest.proc = subprocess.Popen(cmds,
|
ogRest.proc = subprocess.Popen(cmds,
|
||||||
stdout=subprocess.PIPE,
|
stdout=subprocess.PIPE,
|
||||||
|
|
Loading…
Reference in New Issue