Capture output from shell command. Removes a warning ultimately from vcs.
This commit is contained in:
parent
e3eebff36e
commit
4eb4e4ed64
4
run.py
4
run.py
|
|
@ -38,7 +38,9 @@ def export_vcs(project_directory, install_path):
|
||||||
|
|
||||||
# Now call vcs.
|
# Now call vcs.
|
||||||
vcs_command = "vcs export --exact-with-tags {} > {}".format(project_directory, output_file)
|
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__":
|
if __name__ == "__main__":
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue