From 080f550625966727eebff3c9c729d56e50c7bc55 Mon Sep 17 00:00:00 2001 From: Immortalin Date: Mon, 13 Apr 2020 21:32:32 -0400 Subject: [PATCH] v up: optimization --- cmd/tools/vup.v | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/cmd/tools/vup.v b/cmd/tools/vup.v index 66631fe1d5..8a8dfcc782 100644 --- a/cmd/tools/vup.v +++ b/cmd/tools/vup.v @@ -3,6 +3,7 @@ module main import ( os v.pref + v.util ) fn main() { @@ -26,6 +27,13 @@ fn main() { } println(git_result.output) + v_hash := util.githash(false) + current_hash := util.githash(true) + // println(v_hash) + // println(current_hash) + if v_hash == current_hash { + return + } $if windows { v_backup_file := 'v_old.exe'