Navigation Menu

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
Contributor

@captain-caveman2k 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
@captain-caveman2k captain-caveman2k added build Windows Windows-specific labels Feb 7, 2020
@captain-caveman2k captain-caveman2k deleted the checksrc_cwd branch February 21, 2020 09:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build Windows Windows-specific
Development

Successfully merging this pull request may close these issues.

None yet

1 participant