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.
This addresses the issue in which the shell expands unquoted
paths passed to mkdir and thereby fails to create paths when
they contain wildcard characters that happen to match another
existing path. One failure that this fixes is that output
directories are not always created when chromosome names contain
'' characters, such as when running against the HLA sequences.
An example of the failure would be if an output directory:
/out/all/HLA-A_31:01:02 has been created first, and subsequently
another directory /out/all/HLA-A_01:02 is attempted to be created,
prior to this fix it would not be created because
mkdir -p /out/all/HLA-A*01:02
is expanded by the shell tomatch the existing directory (i.e. it is equivalent to
mkdir -p /out/all/HLA-A*31:01:02
, and the desired outputdirectory is not created.
I went ahead and quoted all instances of paths passed to mkdir
because I'm pretty sure there is never a time when you want
wildcard expansion when creating directories.