From f01466d6efedc7578d62e89b54ebfb6c4a7a39de Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Sat, 31 Oct 2020 18:53:40 +0100 Subject: [PATCH] Always strip() the output of check_output --- moulinette/utils/process.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/moulinette/utils/process.py b/moulinette/utils/process.py index fd3d7e1a..ba3fd911 100644 --- a/moulinette/utils/process.py +++ b/moulinette/utils/process.py @@ -28,7 +28,7 @@ def check_output(args, stderr=subprocess.STDOUT, shell=True, **kwargs): and use shell by default before calling subprocess.check_output. """ - return subprocess.check_output(args, stderr=stderr, shell=shell, **kwargs) + return subprocess.check_output(args, stderr=stderr, shell=shell, **kwargs).strip() # Call with stream access ----------------------------------------------