Create VModules directory before Clone
parent
60d206c29d
commit
67d6702c1f
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue