Create VModules directory before Clone

pull/1491/head
FoXy 2019-08-06 18:21:15 +04:30 committed by Alexander Medvednikov
parent 60d206c29d
commit 67d6702c1f
1 changed files with 6 additions and 1 deletions

View File

@ -30,7 +30,12 @@ fn main() {
return return
} }
home := os.home_dir() 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') os.exec('git -C "$home/.vmodules" clone --depth=1 $mod.url $mod.name')
println(s) println(s)
} }