summaryrefslogtreecommitdiffstats
path: root/src/linux/ogOperations.py
diff options
context:
space:
mode:
authorRoberto Hueso Gómez <rhueso@soleta.eu>2020-02-25 13:48:33 +0100
committerAlvaro Neira Ayuso <aneira@soleta.eu>2020-02-25 18:56:49 +0100
commitbb9ec5d7a55bff675e0aa0afa150171d098b3968 (patch)
tree80d43e059424457d2c2dcd64251d32d2c34a5924 /src/linux/ogOperations.py
parentbf69d20966ba71c710078f1b8d790b022551154e (diff)
Handle scripts that end in \r
Diffstat (limited to 'src/linux/ogOperations.py')
-rw-r--r--src/linux/ogOperations.py2
1 files changed, 1 insertions, 1 deletions
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,