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

checksrc.bat: Fix not being able to run script from the main curl directory #4894

Closed

Conversation

@captain-caveman2k
Copy link
Member

captain-caveman2k commented Feb 7, 2020

If the script was ran from the main curl directory rather then the projects directory then the script would simply exit without error:

C:\url> projects\checksrc.bat

The would either need to change to the projects directory, explicitly specify the current working directory, or perform a oneline hacky workaround:

C:\url> cd projects
C:\url\projects> checksrc.bat
C:\url> checksrc.bat %cd%
C:\url> pushd projects & checksrc.bat & popd
…ectory

If the script was ran from the main curl directory rather then the
projects directory then the script would simply exit without error:

C:\url> projects\checksrc.bat

Either the user would need to change to the projects directory,
explicitly specifing the current working directory or perform a
oneline hacky workaround:

C:\url> cd projects
C:\url\projects> checksrc.bat

C:\url> checksrc.bat %cd%

C:\url> pushd projects && checksrc.bat && popd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

1 participant
You can’t perform that action at this time.