From 53ab48458efa0ae5522dc3cc59ecf7b54b229dcb Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Sat, 8 Jul 2023 15:44:26 +0300 Subject: fix: actually set env variables, and prettify output logging Sponsored-by: author --- v-i | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'v-i') diff --git a/v-i b/v-i index 7605bc0..c4772fc 100755 --- a/v-i +++ b/v-i @@ -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") -- cgit v1.2.1