mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
vfmt: change all '$expr' to '${expr}' (#16428)
This commit is contained in:
@ -17,7 +17,7 @@ fn main() {
|
||||
// Git clone c2v
|
||||
if !os.exists(c2v_dir) {
|
||||
os.mkdir_all(vmodules)!
|
||||
println('C2V is not installed. Cloning C2V to $c2v_dir ...')
|
||||
println('C2V is not installed. Cloning C2V to ${c2v_dir} ...')
|
||||
os.chdir(vmodules)!
|
||||
res := os.execute('git clone https://github.com/vlang/c2v')
|
||||
if res.exit_code != 0 {
|
||||
@ -43,10 +43,10 @@ fn main() {
|
||||
passed_args := util.args_quote_paths(os.args[2..])
|
||||
// println(passed_args)
|
||||
os.chdir(os.wd_at_startup)!
|
||||
c2v_cmd := '${os.quoted_path(c2v_bin)} $passed_args'
|
||||
c2v_cmd := '${os.quoted_path(c2v_bin)} ${passed_args}'
|
||||
res := os.system(c2v_cmd)
|
||||
if res != 0 {
|
||||
eprintln('C2V command: $c2v_cmd')
|
||||
eprintln('C2V command: ${c2v_cmd}')
|
||||
eprintln('C2V failed to translate the C files. Please report it via GitHub.')
|
||||
exit(4)
|
||||
}
|
||||
|
Reference in New Issue
Block a user