test/bash_spec: ignore cc script

This commit is contained in:
Bo Anderson 2021-09-18 00:40:40 +01:00
parent 701904ad5c
commit e224006b49
No known key found for this signature in database
GPG Key ID: 3DB94E204E137D65

View File

@ -48,6 +48,7 @@ describe "Bash" do
next if path.directory?
next if path.symlink?
next unless path.executable?
next if path.basename.to_s == "cc" # `bash -n` tries to parse the Ruby part
next unless path.read(12) == "#!/bin/bash\n"
expect(path).to have_valid_bash_syntax