Skip to content
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

mill script is POSIX-compliant and has quoted paths. #1630

Merged
merged 1 commit into from
Dec 17, 2021

Conversation

averms
Copy link
Contributor

@averms averms commented Dec 17, 2021

These are both mostly trivial changes.

The first one makes it so that the script works on systems where Bash is not symlinked to /bin/sh like Alpine Linux and FreeBSD. I'm not 100% sure what that line is trying to do. I read the commit (a41c632) that added it and I couldn't make sense of it. Either way, BASH_SOURCE == BASH_SOURCE[0] which is equal to $0 when the script isn't getting sourced. The script is meant to be run, not sourced, so the change should be fine.

The second change just quotes the path in case someone's XDG_CACHE_HOME has a space in it. And it's good for consistency.

Copy link
Member

@lefou lefou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. Thanks for your contribution!

@lefou lefou merged commit 65e1c59 into com-lihaoyi:main Dec 17, 2021
@lefou lefou added this to the 0.10.0-M5 milestone Dec 17, 2021
pbuszka pushed a commit to pbuszka/mill that referenced this pull request Dec 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants