1
0
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:
Delyan Angelov 2022-03-08 11:33:03 +02:00
parent cea3149369
commit f6aba9a3fe
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED

View File

@ -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)
} }