Skip to content

Commit

Permalink
Add pre-build check for bin/* permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
owenh000 committed Aug 14, 2023
1 parent b6d9170 commit f2e205a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ task :default => :test
#end

task :check_lib_permissions do
Dir["bin/*"].each do |filename|
if !File.world_readable?(filename)
raise 'All bin/* files must be world readable'
end
end
Dir["lib/*.rb"].each do |filename|
if !File.world_readable?(filename)
raise 'All lib/*.rb files must be world readable'
Expand Down

0 comments on commit f2e205a

Please sign in to comment.