Skip to content

Commit

Permalink
change quoting for readability
Browse files Browse the repository at this point in the history
  • Loading branch information
georgeliaw committed Mar 17, 2019
1 parent d8c2712 commit 6a3d281
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions pex/pex_rules.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -159,11 +159,11 @@ def _pex_binary_impl(ctx):
mnemonic = "CreateResourceDirectory",
outputs = [resources_dir],
inputs = runfiles.files.to_list(),
command = "mkdir -p {resources_dir} && rsync -R {transitive_files} {resources_dir} \
&& if [ \"{strip_prefix}\" != \"\" ] && [ -n \"$(ls -A {resources_dir}/{strip_prefix})\" ]; then cp -R {resources_dir}/{strip_prefix}/* {resources_dir}; fi \
&& if [ \"{strip_prefix}\" != \"\" ]; then rm -rf {resources_dir}/{strip_prefix}; fi \
&& if [ -d {resources_dir}/{genfiles_dir}/{strip_prefix} ] && [ -n \"$(ls -A {resources_dir}/{genfiles_dir}/{strip_prefix})\" ]; then cp -R {resources_dir}/{genfiles_dir}/{strip_prefix}/* {resources_dir}; fi \
&& rm -rf {resources_dir}/{genfiles_dir}".format(
command = 'mkdir -p {resources_dir} && rsync -R {transitive_files} {resources_dir} \
&& if [ "{strip_prefix}" != "" ] && [ -n "$(ls -A {resources_dir}/{strip_prefix})" ]; then cp -R {resources_dir}/{strip_prefix}/* {resources_dir}; fi \
&& if [ "{strip_prefix}" != "" ]; then rm -rf {resources_dir}/{strip_prefix}; fi \
&& if [ -d {resources_dir}/{genfiles_dir}/{strip_prefix} ] && [ -n "$(ls -A {resources_dir}/{genfiles_dir}/{strip_prefix})" ]; then cp -R {resources_dir}/{genfiles_dir}/{strip_prefix}/* {resources_dir}; fi \
&& rm -rf {resources_dir}/{genfiles_dir}'.format(
resources_dir = resources_dir.path,
transitive_files = " ".join([file.path for file in runfiles.files]),
genfiles_dir = ctx.configuration.genfiles_dir.path,
Expand Down

0 comments on commit 6a3d281

Please sign in to comment.