Skip to content

Commit

Permalink
add lang wrappers to shellcheck (#3822)
Browse files Browse the repository at this point in the history
  • Loading branch information
johrstrom authored Sep 26, 2024
1 parent 5cd8690 commit 4bfdafb
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions lib/tasks/test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,15 @@

desc 'Run shellcheck'
task :shellcheck do
sh 'shellcheck -x ood-portal-generator/sbin/update_ood_portal'
sh 'shellcheck -x nginx_stage/sbin/nginx_stage'
sh 'shellcheck nginx_stage/sbin/update_nginx_stage'
sh 'shellcheck hooks/k8s-bootstrap/*.sh'
[
['-x', 'ood-portal-generator/sbin/update_ood_portal'],
['-x', 'nginx_stage/sbin/nginx_stage'],
['nginx_stage/sbin/update_nginx_stage'],
['hooks/k8s-bootstrap/*.sh'],
['nginx_stage/bin/*']
].each do |args|
sh "shellcheck #{args.join(' ')}"
end
end

begin
Expand Down

0 comments on commit 4bfdafb

Please sign in to comment.