From 59003a56250f3b19866ffd2d56fdb17239d8ab2a Mon Sep 17 00:00:00 2001 From: "Queen Vinyl Da.i'gyu-Kazotetsu" Date: Wed, 31 Dec 2025 03:46:49 -0800 Subject: [PATCH] Replace `\r\n` with `\n` in command runs This should fix #2. --- lib/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/__init__.py b/lib/__init__.py index 924650c..9c8097c 100644 --- a/lib/__init__.py +++ b/lib/__init__.py @@ -28,7 +28,7 @@ def run_command(command, pipe=True): result = subprocess.run(command, shell=os.name == 'nt', capture_output=pipe) # Check the return code to determine if the command was successful if result.returncode == 0 or result.returncode == 1: - return result.stdout.decode("utf-8").strip() if pipe else "" + return result.stdout.decode("utf-8").strip().replace('\r\n', '\n') if pipe else "" return None except Exception as e: return None