mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
VGet: Fix for dot folder name import
This commit is contained in:
parent
8d35649d90
commit
fa99402314
@ -30,12 +30,12 @@ fn main() {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
home := os.home_dir()
|
home := os.home_dir()
|
||||||
if !os.dir_exists(home + '/.vmodules') {
|
if !os.dir_exists(home + '/.vmodules') {
|
||||||
println('Creating vmodules directory...')
|
println('Creating vmodules directory...')
|
||||||
os.chdir(home)
|
os.chdir(home)
|
||||||
os.mkdir('.vmodules')
|
os.mkdir('.vmodules')
|
||||||
println('Done.')
|
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)
|
println(s)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user