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

fix if else in mill.bat #1661

Merged
merged 2 commits into from
Dec 10, 2022
Merged

fix if else in mill.bat #1661

merged 2 commits into from
Dec 10, 2022

Conversation

MFujarewicz
Copy link
Contributor

When running mill.bat under windows warning shows up:
'else' is not recognized as an internal or external command, operable program or batch file.

This is because else is in new line, not on the same as ')' ending if
https://github.com/VirtusLab/scala-cli/blob/main/mill.bat#L42
https://stackoverflow.com/questions/12365374/else-is-not-recognized-as-an-internal-or-external-command-operable-program-or

Because of that else is ignored end next if is entered

This causes to in .config/mill-version to take precedence over mill-version in outermost directory, opposite to the intent of the code

@MFujarewicz MFujarewicz changed the title fix if else in mill bat fix if else in mill.bat Dec 7, 2022
@Gedochao Gedochao added Warsaw Scala Spree bug Something isn't working labels Dec 8, 2022
@lwronski lwronski self-requested a review December 10, 2022 12:02
Copy link
Contributor

@lwronski lwronski left a comment

Choose a reason for hiding this comment

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

@MFujarewicz Thanks for your first contribution. LGTM

@lwronski lwronski merged commit d7bc966 into VirtusLab:main Dec 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Warsaw Scala Spree
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants