From 5c040a4ea08712cff32ea55427584a5422e7d2ba Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Wed, 13 Nov 2024 17:04:08 +0200 Subject: [PATCH] install: use os.execute instead of os.system for now, because `v-analyzer version` seems to be using eprintln itself --- install.vsh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install.vsh b/install.vsh index 3cd0b1c..ffd7a93 100644 --- a/install.vsh +++ b/install.vsh @@ -278,8 +278,8 @@ fn update_from_sources(update bool, nightly bool) ! { fn show_info_about_binary(analyzer_bin_file_path string) { println('Path to the binary: ${term.bold(analyzer_bin_file_path)}') println('Size of the binary: ${term.bold(os.file_size(analyzer_bin_file_path).str())}') - print('Binary version: ') - os.system('${os.quoted_path(analyzer_bin_file_path)} version') + bversion := os.execute('${os.quoted_path(analyzer_bin_file_path)} version') + println('Binary version: ${term.bold(bversion.output.trim_space())}') } fn get_latest_commit_hash() !string {