v up: optimization
parent
8bef97fce6
commit
080f550625
|
@ -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'
|
||||
|
|
Loading…
Reference in New Issue