mirror of
https://github.com/YunoHost/moulinette.git
synced 2024-09-03 20:06:31 +02:00
Always strip() the output of check_output
This commit is contained in:
parent
542a3ffc61
commit
f01466d6ef
1 changed files with 1 additions and 1 deletions
|
@ -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 ----------------------------------------------
|
||||
|
|
Loading…
Add table
Reference in a new issue