ix 'v up' on windows

pull/3162/head^2
kdmult 2019-12-23 13:22:06 +03:00 committed by Alexander Medvednikov
parent dced76d1a4
commit 6c4ef368d7
1 changed files with 3 additions and 1 deletions

View File

@ -1,3 +1,5 @@
module main
import (
os
filepath
@ -14,7 +16,7 @@ fn main() {
if os.exists( v_backup_file ) {
os.rm( v_backup_file )
}
os.mv_by_cp('$vroot/v.exe', v_backup_file) or { panic(err) }
os.mv('$vroot/v.exe', v_backup_file)
s2 := os.exec('"$vroot/make.bat"') or { panic(err) }
println(s2.output)
} $else {