mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
os: deprecate os.exec (returning ?os.Result), in favour of os.execute, which returns os.Result (#8974)
This commit is contained in:
@ -31,7 +31,7 @@ fn setup_symlink_unix(vexe string) {
|
||||
}
|
||||
link_path = link_dir + '/v'
|
||||
}
|
||||
ret := os.exec('ln -sf $vexe $link_path') or { panic(err) }
|
||||
ret := os.execute_or_panic('ln -sf $vexe $link_path')
|
||||
if ret.exit_code == 0 {
|
||||
println('Symlink "$link_path" has been created')
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user