-
Notifications
You must be signed in to change notification settings - Fork 21
Add windows support to setup. Fixes #797 #798
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
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 the setup.cmd
script in CMD and PowerShell, and it works perfectly. The unix folks won't be able to run this one, though, right? For example, I don't think I can run setup.cmd
in ZSH on my Mac. Maybe we want to retain both scripts?
This worked on linux and I think it will work on Mac. Try to run it in ZSH: |
Ah, you're absolutely right. User error on my part. 🙂 |
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.
Looking good to me. Tested on Windows and Mac.
@Jamie-SA Does this require a change to the documentation on setting up the project? Do you need to update the release note (you can include one note for the two issues). |
Documentation is now updated. |
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.
@Jamie-SA I made a couple of tweaks to the documentation and tried to commit. I am getting the following error when the pre-commit runs:
line 32: return: can only `return' from a function or sourced script
Line 32 does indeed read "return 0"
I tried the following:
if [ ! ${rc} -eq 0 ] ; then
return 1
else
return 0
fi
But I get a similar error. I don't know why it accepts the "return 1" within the if statement.
I don't know if I'm doing something wrong or whether there's a problem with the pre-commit hook.
I guess some shells are more strict. I've pushed an update that will hopefully fix it. |
Your fix works, thanks! |
Fixes #797
Modified the setup script so that it might work in the windows command window.
I haven't tested it yet on Windows.
If we decide to go forward with this, I will update the documentation to match the name change and additional capabilities.