diff options
author | Roberto Hueso Gómez <rhueso@soleta.eu> | 2020-02-25 13:48:33 +0100 |
---|---|---|
committer | Alvaro Neira Ayuso <aneira@soleta.eu> | 2020-02-25 18:56:49 +0100 |
commit | bb9ec5d7a55bff675e0aa0afa150171d098b3968 (patch) | |
tree | 80d43e059424457d2c2dcd64251d32d2c34a5924 | |
parent | bf69d20966ba71c710078f1b8d790b022551154e (diff) |
Handle scripts that end in \r
-rw-r--r-- | src/linux/ogOperations.py | 2 |
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, |