Skip to content

Commit

Permalink
install: use os.execute instead of os.system for now, because `v-anal…
Browse files Browse the repository at this point in the history
…yzer version` seems to be using eprintln itself
  • Loading branch information
spytheman committed Nov 13, 2024
1 parent 7a1efd5 commit 5c040a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions install.vsh
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 5c040a4

Please sign in to comment.