Skip to content

Commit

Permalink
Merge pull request #11 from avadhanij6si/INFRA-5279-fix-issue-with-es…
Browse files Browse the repository at this point in the history
…cape-character-in-bazel-rules-pex

Added proper escape character for find command
  • Loading branch information
georgeliaw authored Nov 16, 2022
2 parents 8e7d7a3 + c461580 commit f2a3514
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pex/pex_rules.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ def _pex_binary_impl(ctx):
&& if [ "{strip_prefix}" != "" ]; then rm -rf {sources_dir}/{strip_prefix}; fi \
&& if [ -d {sources_dir}/{genfiles_dir}/{strip_prefix} ] && [ -n "$(ls -A {sources_dir}/{genfiles_dir}/{strip_prefix})" ]; then cp -R {sources_dir}/{genfiles_dir}/{strip_prefix}/* {sources_dir}; fi \
&& rm -rf {sources_dir}/{genfiles_parent_dir} \
&& find {sources_dir} -type d -exec touch {{}}/__init__.py \;'.format(
&& find {sources_dir} -type d -exec touch {{}}/__init__.py \\;'.format(
sources_dir = sources_dir.path,
transitive_files = " ".join([file.path for file in runfiles.files.to_list()]),
genfiles_dir = ctx.configuration.genfiles_dir.path,
Expand Down

0 comments on commit f2a3514

Please sign in to comment.