Skip to content

Commit

Permalink
Remove shellcheck exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikSchierboom committed Aug 14, 2024
1 parent 47effbf commit 8f5b6aa
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions bin/bootstrap
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@ system("rm -rf %s" % File.join(dir, ".git"))
system("rm -rf %s" % File.join(dir, "Gemfile"))
system("rm -rf %s" % File.join(dir, "Gemfile.lock"))
system("rm -rf %s" % File.join(dir, ".ruby-version"))
system("rm -rf %s" % File.join(dir, "bin/bootstrap"))
system("rm -rf %s" % File.join(dir, ".github/ISSUE_TEMPLATE.md"))
system("rm -rf %s" % File.join(dir, ".github/workflows/pause-community-contributions.yml"))
system("rm -rf %s" % File.join(dir, ".github/workflows/shellcheck.yml"))
system("rm -rf %s" % File.join(dir, "bin", "bootstrap"))
system("rm -rf %s" % File.join(dir, ".github", "ISSUE_TEMPLATE.md"))
system("rm -rf %s" % File.join(dir, ".github", "workflows", "pause-community-contributions.yml"))
system("rm -rf %s" % File.join(dir, ".github", "workflows", "shellcheck.yml"))
system("mv %s/TRACK_README.md %s/README.md" % [dir, dir])

f = File.join(dir, 'LICENSE')
Expand All @@ -63,6 +63,14 @@ File.open(f, "w") do |f|
f.write contents.gsub('{{UUID}}') {|m| SecureRandom.uuid }
end

%w[verify-exercises verify-exercises-in-docker].each do |name|
f = File.join(dir, 'bin', name)
contents = File.read(f)
File.open(f, "w") do |f|
f.write contents.gsub(/^\s*# shellcheck.*?\n/, '')
end
end

[
"config.json",
"README.md",
Expand Down

0 comments on commit 8f5b6aa

Please sign in to comment.