-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Fix MacOS tools alias error #426
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
```sh | ||
brew install coreutils # contains grealpath | ||
brew install gpatch | ||
brew install diffutils |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about the diffutils
? I believe they should also be installed with brew
to get the correct behavior?
What about grealpath
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I should return install code block. It was part of aliases so I automatically discarded it.
Above is still mentioned to install those deps though.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's back.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just to double check that realpath
alias is no longer needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tested this without any aliases and it worked. Aliases don't work in shell scripts anyway. That is the reason this PR started:
Aliases and functions do not propagate to shell scripts
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah true, great then 👍 I wanted to be extra safe since I didn't conclude that it's okay to delete it myself.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Fixes problems caused by:
Old alias instructions are removed, instead we "alias" the command inside of the script itself.
The script exits if there is no
gpatch
on MacOS.Fixes #416