Handle scripts that end in \r

more_events
Roberto Hueso Gómez 2020-02-25 13:48:33 +01:00 committed by Alvaro Neira Ayuso
parent bf69d20966
commit bb9ec5d7a5
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ def reboot():
def execCMD(request, ogRest):
cmd = request.getrun()
cmds = cmd.split(";|\n")
cmds = cmd.split(";|\n\r")
try:
ogRest.proc = subprocess.Popen(cmds,
stdout=subprocess.PIPE,