From 67d6702c1f0beee0acf5fd197a7b307002ff6de6 Mon Sep 17 00:00:00 2001 From: FoXy <12250394+FIREFOXCYBER@users.noreply.github.com> Date: Tue, 6 Aug 2019 18:21:15 +0430 Subject: [PATCH] Create VModules directory before Clone --- tools/vget.v | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tools/vget.v b/tools/vget.v index a9bf8a2804..ee84dc4dc2 100644 --- a/tools/vget.v +++ b/tools/vget.v @@ -30,7 +30,12 @@ fn main() { return } home := os.home_dir() + 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') println(s) } -