From 4eb4e4ed647b4ddf714a901ffa6da5f97ad34d38 Mon Sep 17 00:00:00 2001 From: James Pace Date: Tue, 26 May 2026 10:15:34 -0400 Subject: [PATCH] Capture output from shell command. Removes a warning ultimately from vcs. --- run.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/run.py b/run.py index 5651301..1128f3d 100755 --- a/run.py +++ b/run.py @@ -38,7 +38,9 @@ def export_vcs(project_directory, install_path): # Now call vcs. vcs_command = "vcs export --exact-with-tags {} > {}".format(project_directory, output_file) - subprocess.run(vcs_command, shell=True) + result = subprocess.run(vcs_command, shell=True, capture_output=True) + if result.returncode != 0: + print("Failed to export software version. Return code: {}".format(result.returncode)) if __name__ == "__main__":