mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
util: make check_module_is_installed more robust to ~/.vmodules paths with spaces
This commit is contained in:
parent
cea3149369
commit
f6aba9a3fe
@ -371,7 +371,7 @@ and the existing module `$modulename` may still work.')
|
|||||||
if is_verbose {
|
if is_verbose {
|
||||||
eprintln('check_module_is_installed: cloning from $murl ...')
|
eprintln('check_module_is_installed: cloning from $murl ...')
|
||||||
}
|
}
|
||||||
cloning_res := os.execute('git clone $murl $mpath')
|
cloning_res := os.execute('git clone ${os.quoted_path(murl)} ${os.quoted_path(mpath)}')
|
||||||
if cloning_res.exit_code < 0 {
|
if cloning_res.exit_code < 0 {
|
||||||
return error_with_code('git is not installed, error: $cloning_res.output', cloning_res.exit_code)
|
return error_with_code('git is not installed, error: $cloning_res.output', cloning_res.exit_code)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user