Skip to content

Commit cab5a13

Browse files
Fix wrong cache check condition for tools
1 parent f63cd84 commit cab5a13

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/ruby_wasm/build_system/product/wasi_vfs.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def name
4141
end
4242

4343
def build
44-
return if !@need_fetch_lib && File.exist?(lib_wasi_vfs_a)
44+
return if !@need_fetch_lib || File.exist?(lib_wasi_vfs_a)
4545
require "tmpdir"
4646
lib_wasi_vfs_url =
4747
"https://github.com/kateinoigakukun/wasi-vfs/releases/download/v#{WASI_VFS_VERSION}/libwasi_vfs-wasm32-unknown-unknown.zip"
@@ -54,7 +54,7 @@ def build
5454
end
5555

5656
def install_cli
57-
return if !@need_fetch_cli && File.exist?(cli_bin_path)
57+
return if !@need_fetch_cli || File.exist?(cli_bin_path)
5858
FileUtils.mkdir_p cli_product_build_dir
5959
zipfile = File.join(cli_product_build_dir, "wasi-vfs-cli.zip")
6060
system "curl -L -o #{zipfile} #{self.cli_download_url}"

0 commit comments

Comments
 (0)