mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
vup: show the current V version after an update
This commit is contained in:
parent
62cb48d252
commit
3e4d99a0e3
@ -30,6 +30,7 @@ fn main() {
|
||||
// println(v_hash)
|
||||
// println(current_hash)
|
||||
if v_hash == current_hash {
|
||||
show_current_v_version()
|
||||
return
|
||||
}
|
||||
|
||||
@ -60,6 +61,12 @@ fn main() {
|
||||
_ := os.exec('v cmd/tools/vup.v') or {
|
||||
panic(err)
|
||||
}
|
||||
show_current_v_version()
|
||||
}
|
||||
|
||||
fn show_current_v_version(){
|
||||
println('Current V version:')
|
||||
os.system('v version')
|
||||
}
|
||||
|
||||
fn backup(file string) {
|
||||
|
Loading…
Reference in New Issue
Block a user