From 3e4d99a0e31a33701db00287e9952fb40695f27f Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Sat, 16 May 2020 22:16:39 +0300 Subject: [PATCH] vup: show the current V version after an update --- cmd/tools/vup.v | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/cmd/tools/vup.v b/cmd/tools/vup.v index 6b36a29a47..5d0b673f98 100644 --- a/cmd/tools/vup.v +++ b/cmd/tools/vup.v @@ -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) {