util: make check_module_is_installed more robust to ~/.vmodules paths with spaces

pull/13687/head
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
1 changed files with 1 additions and 1 deletions

View File

@ -371,7 +371,7 @@ and the existing module `$modulename` may still work.')
if is_verbose {
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 {
return error_with_code('git is not installed, error: $cloning_res.output', cloning_res.exit_code)
}