-
-
Notifications
You must be signed in to change notification settings - Fork 413
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use realpath of scripts to determine relative locations (#308)
Just using paths relative to ${BASH_SOURCE} to access `libexec` fails if the scripts are symlinked to a location, such as when installed with Homebrew, since the `libexec` directory is not linked into `brew --prefix`. Implement a simple version of `realpath` and run `${BASH_SOURCE}` through it. This gets the actual installation directory relative to which `libexec` is located. Co-authored-by: Andrew Christianson <achristianson@edmunds.com>
- Loading branch information
1 parent
633711a
commit c4de255
Showing
2 changed files
with
30 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters