Skip to content

Commit 3150658

Browse files
donoghucjsvd
andauthored
Update rakelib/artifacts.rake
Co-authored-by: João Duarte <[email protected]>
1 parent 774fa9e commit 3150658

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rakelib/artifacts.rake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -669,7 +669,7 @@ namespace "artifact" do
669669
elsif stat.symlink?
670670
tar.symlink(path_in_tar, File.readlink(path), :mode => stat.mode)
671671
else
672-
tar.add_file_simple(path_in_tar, :mode => stat.mode, :size => stat.size, :mtime => stat.mtime&.to_i || Time.now.to_i) do |io|
672+
tar.add_file_simple(path_in_tar, :mode => stat.mode, :size => stat.size, :mtime => (stat.mtime || Time.now).to_i) do |io|
673673
File.open(path, 'rb') do |fd|
674674
chunk = nil
675675
size = 0

0 commit comments

Comments
 (0)