Skip to content

Commit

Permalink
Fix file permission for new artifacts, backported from
Browse files Browse the repository at this point in the history
commit e6399b7 (PR #2001).
  • Loading branch information
fredrikekre committed Oct 22, 2020
1 parent 1542f28 commit 18be77a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Artifacts.jl
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,7 @@ function create_artifact(f::Function)
if !isdir(new_path)
# Move this generated directory to its final destination, set it to read-only
mv(temp_dir, new_path)
chmod(new_path, filemode(dirname(new_path)))
set_readonly(new_path)
end

Expand Down

0 comments on commit 18be77a

Please sign in to comment.