mirror of
https://github.com/vlang/v.git
synced 2025-09-13 22:42:26 +03:00
ci: use os.system to redirect output
This commit is contained in:
parent
7ee7fb7664
commit
5d0f6b8a3d
1 changed files with 5 additions and 4 deletions
|
@ -73,16 +73,17 @@ fn run_step(step Command) {
|
||||||
|
|
||||||
// Helper function to execute commands and exit if they fail
|
// Helper function to execute commands and exit if they fail
|
||||||
fn exec(command string) {
|
fn exec(command string) {
|
||||||
result := os.execute(command)
|
result := os.system(command)
|
||||||
// or {
|
// or {
|
||||||
// eprintln('Command failed: $command\nError: $err')
|
// eprintln('Command failed: $command\nError: $err')
|
||||||
// exit(1)
|
// exit(1)
|
||||||
//}
|
//}
|
||||||
if result.exit_code != 0 {
|
// if result.exit_code != 0 {
|
||||||
eprintln('Command failed with code ${result.exit_code}: ${command}\nOutput: ${result.output}')
|
if result != 0 {
|
||||||
|
// eprintln('Command failed with code ${result.exit_code}: ${command}\nOutput: ${result.output}')
|
||||||
exit(1)
|
exit(1)
|
||||||
}
|
}
|
||||||
println(result.output)
|
// println(result.output)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Map enum values to human readable step names
|
// Map enum values to human readable step names
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue