shims/gems/rubocop: handle when brew isn't in PATH.

Instead, figure out where `$HOMEBREW_PREFIX/bin` should be and use that.
This commit is contained in:
Mike McQuaid 2022-08-30 12:53:42 +00:00 committed by GitHub
parent 13b060ab86
commit 5b8bc14afd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,2 +1,3 @@
#!/bin/bash #!/bin/bash
exec brew rubocop "$@" HOMEBREW_PREFIX_BIN="$(cd "$(dirname "$0")"/../../../../ && pwd)/bin/"
exec "${HOMEBREW_PREFIX_BIN}"brew rubocop "$@"