From bb9ec5d7a55bff675e0aa0afa150171d098b3968 Mon Sep 17 00:00:00 2001 From: Roberto Hueso Gómez Date: Tue, 25 Feb 2020 13:48:33 +0100 Subject: Handle scripts that end in \r --- src/linux/ogOperations.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/linux/ogOperations.py b/src/linux/ogOperations.py index 3989a1c..cc1a278 100644 --- a/src/linux/ogOperations.py +++ b/src/linux/ogOperations.py @@ -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, -- cgit v1.2.3-18-g5258