v up: optimization

pull/4395/head
Immortalin 2020-04-13 21:32:32 -04:00 committed by GitHub
parent 8bef97fce6
commit 080f550625
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 0 deletions

View File

@ -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'