From 5e8288528aedd3e16190b7df0281cc1a797b6dd2 Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Mon, 22 Nov 2021 15:11:33 +0200 Subject: [PATCH] ci: fix `v -b js vlib/builtin/js/array_test.js.v` --- vlib/os/os.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vlib/os/os.v b/vlib/os/os.v index 0ebb1dec39..093dfed383 100644 --- a/vlib/os/os.v +++ b/vlib/os/os.v @@ -39,8 +39,8 @@ pub fn cp_all(src string, dst string, overwrite bool) ? { } // single file copy if !is_dir(source_path) { + fname := file_name(source_path) adjusted_path := if is_dir(dest_path) { - fname := file_name(source_path) join_path_single(dest_path, fname) } else { dest_path