summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xtool/extlibs.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/tool/extlibs.rb b/tool/extlibs.rb
index 94917a95a0..a840724794 100755
--- a/tool/extlibs.rb
+++ b/tool/extlibs.rb
@@ -65,7 +65,7 @@ class ExtLibs
when '.zip'
pid = Process.spawn("unzip", inp, "-d", dir)
end
- f&.close
+ f.close if f
Process.wait(pid)
$?.success? or raise "failed to extract #{cache}"
end