Replace \r\n with \n in command runs

This should fix #2.
This commit is contained in:
Queen Vinyl Da.i'gyu-Kazotetsu committed 2025-12-31 03:46:57 -08:00
1 parent 088e33b7c8
commit 59003a5625
1 file changed
+1 -1
+1 -1
View File
@@ -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