summaryrefslogtreecommitdiff
path: root/v-i
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2023-07-08 15:44:26 +0300
committerLars Wirzenius <liw@liw.fi>2023-07-08 16:36:05 +0300
commit53ab48458efa0ae5522dc3cc59ecf7b54b229dcb (patch)
tree7519a7522590317bef2878da68e2bb93c1a61553 /v-i
parent51f27e090894e9462581e3972bf1121e95c89fe0 (diff)
downloadv-i-53ab48458efa0ae5522dc3cc59ecf7b54b229dcb.tar.gz
fix: actually set env variables, and prettify output logging
Sponsored-by: author
Diffstat (limited to 'v-i')
-rwxr-xr-xv-i6
1 files changed, 5 insertions, 1 deletions
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")