mirror of
https://codeberg.org/Mo8it/AdvLabDB.git
synced 2024-11-08 21:21:06 +00:00
Better showing of running commands
This commit is contained in:
parent
0f9cda3a03
commit
43c49c493b
1 changed files with 2 additions and 3 deletions
|
@ -61,9 +61,8 @@ args = parser.parse_args()
|
||||||
|
|
||||||
|
|
||||||
def run(command: str, **kwargs):
|
def run(command: str, **kwargs):
|
||||||
if args.verbose:
|
print("\n\nRunning command:")
|
||||||
print("Running command:")
|
print(f"\t{command}\n")
|
||||||
print(f"\t{command}")
|
|
||||||
return subprocess.run(command, shell=True, **kwargs) # nosec B602
|
return subprocess.run(command, shell=True, **kwargs) # nosec B602
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue