From 146a9507c64b6467c3eb32673064d20226b22f84 Mon Sep 17 00:00:00 2001 From: Henrixounez Date: Fri, 9 Aug 2019 19:15:11 +0200 Subject: [PATCH] REPL: fix repl using older binary on piping repl: delete binary files when exiting --- compiler/main.v | 2 ++ 1 file changed, 2 insertions(+) diff --git a/compiler/main.v b/compiler/main.v index b9f15db7bc..178697090e 100644 --- a/compiler/main.v +++ b/compiler/main.v @@ -1301,6 +1301,8 @@ fn run_repl() []string { defer { os.rm(file) os.rm(temp_file) + os.rm(file.left(file.len - 2)) + os.rm(temp_file.left(temp_file.len - 2)) } mut lines := []string vexe := os.args[0]