diff options
author | Lars Wirzenius <liw@liw.fi> | 2023-07-08 15:44:26 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2023-07-08 16:36:05 +0300 |
commit | 53ab48458efa0ae5522dc3cc59ecf7b54b229dcb (patch) | |
tree | 7519a7522590317bef2878da68e2bb93c1a61553 /v-i | |
parent | 51f27e090894e9462581e3972bf1121e95c89fe0 (diff) | |
download | v-i-53ab48458efa0ae5522dc3cc59ecf7b54b229dcb.tar.gz |
fix: actually set env variables, and prettify output logging
Sponsored-by: author
Diffstat (limited to 'v-i')
-rwxr-xr-x | v-i | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -15,6 +15,10 @@ import yaml verbose = False +def indent(s): + return "".join(f" {line}\n" for line in s.splitlines()) + + def log(msg): if verbose: print("INSTALLER:", msg) @@ -551,7 +555,7 @@ def main(): ] if verbose: argv.append("--verbose") - run(argv, check=True, capture_output=True) + run(argv, check=True, capture_output=True, env=env) timings.reached("vmdb2") log("cleanup") |