This repository has been archived by the owner on May 9, 2024. It is now read-only.
Fix issue where 10updocker fails to add custom domain entries in /etc/hosts
.
#338
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description of the Change
Seems like the code assumes that the file path for
mkcertPrebuilt
is a valid file system path. It's not always the case.Sometimes (as is the case in #312) the Node is installed in a directory where there's a space in the directory name. Such paths with a space in-between will break the script, if not escaped properly.
As it's rightly pointed out #312 (comment).
I've escaped the shell binary path with double quotes so that unexpected space characters in the file path doesn't break the script.
Closes #312
How to test the Change
Not sure. Haven't followed any testing strategy here. But happy to follow any guidance here.
Changelog Entry
Credits
Props ...
Checklist: