1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

vup: add quotes for the people with weird V paths (#6393)

This commit is contained in:
Aqil Contractor 2020-09-16 19:00:56 -04:00 committed by GitHub
parent 6f7bb30b0a
commit a984f9cf97
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -36,7 +36,7 @@ fn main() {
app.backup('cmd/tools/vup.exe')
}
app.recompile_v()
os.exec('$app.vexe cmd/tools/vup.v') or {
os.exec('"$app.vexe" cmd/tools/vup.v') or {
panic(err)
}
app.show_current_v_version()
@ -61,7 +61,7 @@ fn (app App) update_from_master() {
fn (app App) recompile_v() {
// NB: app.vexe is more reliable than just v (which may be a symlink)
vself := '$app.vexe self'
vself := '"$app.vexe" self'
if app.is_verbose {
println('> recompiling v itself with `$vself` ...')
}
@ -88,7 +88,7 @@ fn (app App) make(vself string) {
fn (app App) show_current_v_version() {
println('Current V version:')
os.system('$app.vexe version')
os.system('"$app.vexe" version')
}
fn (app App) backup(file string) {