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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Quote pwd to prevent error if dir has spaces #917

Merged
merged 1 commit into from Jun 6, 2023

Conversation

jrdnbradford
Copy link
Contributor

Very small change to the docker run command so that it works even if the path to your working directory has spaces. 馃槉

@@ -24,7 +24,7 @@ The easiest & safest way to develop & test TLJH is with [Docker](https://www.doc
--detach \
--name=tljh-dev \
--publish 12000:80 \
--mount type=bind,source=$(pwd),target=/srv/src \
--mount type=bind,source="$(pwd)",target=/srv/src \
Copy link
Member

Choose a reason for hiding this comment

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

I'm always a bit uncertain about putting quotes in the middle of a string, but you tested this and it worked?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Same! It has been tested. Command continues to run correctly when the source path has no spaces as before, and now works if there are spaces since "$(pwd)" gets expanded and quoted.

Copy link
Member

@consideRatio consideRatio left a comment

Choose a reason for hiding this comment

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

LGTM assuming it was tested to work!

@consideRatio consideRatio merged commit 84ea189 into jupyterhub:main Jun 6, 2023
2 checks passed
@consideRatio
Copy link
Member

Thank you @jrdnbradford!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants