From f6aba9a3fe8f054ffddfed354280a4f90896758d Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Tue, 8 Mar 2022 11:33:03 +0200 Subject: [PATCH] util: make check_module_is_installed more robust to ~/.vmodules paths with spaces --- vlib/v/util/util.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vlib/v/util/util.v b/vlib/v/util/util.v index 6ddbf948e5..3e077928d6 100644 --- a/vlib/v/util/util.v +++ b/vlib/v/util/util.v @@ -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) }