VGet: Fix for dot folder name import

pull/1498/head
FoXy 2019-08-06 23:40:52 +04:30 committed by Alexander Medvednikov
parent 8d35649d90
commit fa99402314
1 changed files with 2 additions and 2 deletions

View File

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