From fa972d2ea0092070120540284512606e624bcd30 Mon Sep 17 00:00:00 2001 From: Vinicius Moreira Date: Wed, 23 Feb 2022 15:45:26 -0300 Subject: [PATCH] [commons] improvement: not displaying any output related to '[sudo] password' --- bauh/commons/system.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bauh/commons/system.py b/bauh/commons/system.py index 996d4d98..c18dd383 100644 --- a/bauh/commons/system.py +++ b/bauh/commons/system.py @@ -195,6 +195,9 @@ class ProcessHandler: except UnicodeDecodeError: continue + if line.startswith('[sudo] password'): + continue + output.write(line) line = line.strip()