-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Rename MOD_PLATFORM to MODPACK_PLATFORM #3120
Rename MOD_PLATFORM to MODPACK_PLATFORM #3120
Conversation
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 didn’t want to penalize users for still using MOD_PLATFORM. I just wanted to add the new variable going forward and alias the old variable to it. In the docs I wanted it to say that either is fine.
And we talked about large PRs 😬
Okay sorry i misunderstood the description of what you wanted 😅 i know about the large PR but since it's only a rename of a variable i tought it was okay mb ! |
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.
Here's the changes I'd like to see.
I do want to thank you for helping out on the project and I hope I haven't scared you off with both sets of PR feedback.
scripts/start-configuration
Outdated
@@ -160,7 +160,7 @@ fi | |||
|
|||
: "${MODPACK_PLATFORM:=${MOD_PLATFORM:-}}" | |||
|
|||
if [[ $MODPACK_PLATFORM -a $TYPE ]]; then | |||
if [[ -z $MODPACK_PLATFORM || -z $TYPE ]]; then |
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.
That looks more confusing now. Sorry for my wrong suggestion initially, but can you use this instead to get back to my original intent:
if [[ -z $MODPACK_PLATFORM || -z $TYPE ]]; then | |
if [[ $MODPACK_PLATFORM && $TYPE ]]; then |
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.
Sorry for the delay in the re-review. Just one last tweak and it'll be good to merge.
#3115