diff --git a/tools/vget.v b/tools/vget.v index ee84dc4dc2..29e0c9df12 100644 --- a/tools/vget.v +++ b/tools/vget.v @@ -30,12 +30,12 @@ fn main() { return } home := os.home_dir() - if !os.dir_exists(home + '/.vmodules') { + if !os.dir_exists(home + '/.vmodules') { println('Creating vmodules directory...') os.chdir(home) os.mkdir('.vmodules') println('Done.') } - os.exec('git -C "$home/.vmodules" clone --depth=1 $mod.url $mod.name') + os.exec('git -C "$home/.vmodules" clone --depth=1 $mod.url ' + mod.name.replace('.', '/')) println(s) }