mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
Merge pull request #12086 from Homebrew/cc-bash
shims/super/cc: run in bash shell
This commit is contained in:
commit
12d5e70b87
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user