Merge pull request #12086 from Homebrew/cc-bash

shims/super/cc: run in bash shell
This commit is contained in:
Bo Anderson 2021-09-18 03:56:16 +01:00 committed by GitHub
commit 12d5e70b87
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash
# Make sure this shim uses the same Ruby interpreter that is used by Homebrew.
if [[ -z "${HOMEBREW_RUBY_PATH}" ]]
then

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