1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

Create VModules directory before Clone

This commit is contained in:
FoXy 2019-08-06 18:21:15 +04:30 committed by Alexander Medvednikov
parent 60d206c29d
commit 67d6702c1f

View File

@ -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)
}