mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
os.exec: return ?string instead of string
This commit is contained in:

committed by
Alexander Medvednikov

parent
1470b3da11
commit
28147c0930
@@ -36,6 +36,9 @@ fn main() {
|
||||
os.mkdir('.vmodules')
|
||||
println('Done.')
|
||||
}
|
||||
os.exec('git -C "$home/.vmodules" clone --depth=1 $mod.url ' + mod.name.replace('.', '/'))
|
||||
_ := os.exec('git -C "$home/.vmodules" clone --depth=1 $mod.url ' + mod.name.replace('.', '/')) or {
|
||||
panic(err)
|
||||
return // TODO remove return
|
||||
}
|
||||
println(s)
|
||||
}
|
||||
|
Reference in New Issue
Block a user