Skip to content

Commit

Permalink
No public description
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 599585682
  • Loading branch information
thomasvl authored and swiple-rules-gardener committed Jan 18, 2024
1 parent 979788e commit e240b74
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/apple_support.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -492,9 +492,10 @@ def _run_shell(
# TODO(b/77637734) remove "workaround" once the bazel issue is resolved.
# Bazel doesn't always get the shell right for a single string `commands`;
# so work around that case by faking it as a list of strings that forces
# the shell correctly.
# the shell correctly. Skip all this if there are arguments as hopefully
# that will work, if it doesn't see the mentioned bug.
command = kwargs.get("command")
if command and types.is_string(command):
if command and types.is_string(command) and not kwargs.get("arguments", []):
processed_args = dict(kwargs)
processed_args["command"] = ["/bin/sh", "-c", command]
kwargs = processed_args
Expand Down

1 comment on commit e240b74

@keith
Copy link
Member

@keith keith commented on e240b74 Mar 4, 2024

Choose a reason for hiding this comment

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

not taking, irrelevant because of #67

Please sign in to comment.