Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b03d7bb1a3 |
+2
-2
@@ -43,6 +43,6 @@ def create_dir(dir_path: str):
|
|||||||
def hide_password(cmd: list, password: str) -> list:
|
def hide_password(cmd: list, password: str) -> list:
|
||||||
cmd = cmd.copy()
|
cmd = cmd.copy()
|
||||||
for i, arg in enumerate(cmd):
|
for i, arg in enumerate(cmd):
|
||||||
if arg == password:
|
if password in arg:
|
||||||
cmd[i] = '********'
|
cmd[i] = arg.replace(password, "********")
|
||||||
return cmd
|
return cmd
|
||||||
Reference in new issue
Block a user