Zbeekman mac os patch - #6
Conversation
|
One, moment, this doesn't work... |
|
Will merge once it does. |
a85583a to
c055e3e
Compare
|
@pocc: AFAICT, this is now ready to merge. Here are a few notes:
Also, on macOS, the homebrew cask for oclint conflicts with GCC (won't install, and causes issues if it is installed and you try to install/link gcc). A fix for this was just merged: Homebrew/homebrew-cask#73649 |
|
@pocc if you want me to drop the test modification (if you have plans for a better fix) or want me to make any changes, please let me know. |
guihao-liang
left a comment
There was a problem hiding this comment.
Is it better to keep this function in one place instead of several copies?
| SOURCE="${BASH_SOURCE[0]}" | ||
| # While $SOURCE is a symlink, resolve it | ||
| while [ -h "$SOURCE" ]; do | ||
| DIR="$( cd -P "$( dirname "$SOURCE" )" > /dev/null && pwd )" |
There was a problem hiding this comment.
There's no need to keep extra space around parenthesis.
| args=("$@") | ||
| hook_dir="$(dirname "$(readlink -f "$0")")" | ||
| get_script_dir () { | ||
| SOURCE="${BASH_SOURCE[0]}" |
| args=("$@") | ||
| hook_dir="$(dirname "$(readlink -f "$0")")" | ||
| get_script_dir () { | ||
| SOURCE="${BASH_SOURCE[0]}" |
There was a problem hiding this comment.
you may consider making it local, local source_dir=
|
Sorry, I didn't mean to be a reviewer. |
|
I found this link pretty helpful to have the right Besides that, it's better to use |
nvm, it's a chicken and egg problem. |
4094253 to
d0b7ef2
Compare
|
Closing as this no longer necessary. All of the utils functions have been merged into each respective file for this bash version and a python version is now available. @zbeekman thank you for making this PR. If I'm missing something, please reply here. |
I can squash down the commits, etc.
Should help fix issues raised in #4