mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
compiler: add os.mv_by_cp and use it for the temporary files
This commit is contained in:
committed by
Alexander Medvednikov
parent
0cf232d692
commit
a620e66af5
@@ -11,7 +11,7 @@ fn main() {
|
||||
if os.file_exists( v_backup_file ) {
|
||||
os.rm( v_backup_file )
|
||||
}
|
||||
os.mv('$vroot/v.exe', v_backup_file)
|
||||
os.mv_by_cp('$vroot/v.exe', v_backup_file) or { panic(err) }
|
||||
s2 := os.exec('"$vroot/make.bat"') or { panic(err) }
|
||||
println(s2.output)
|
||||
} $else {
|
||||
|
||||
Reference in New Issue
Block a user