Skip to content

Commit

Permalink
Fix kustomize pushd
Browse files Browse the repository at this point in the history
Summary: Accidentally added the redirect inside the quotes.

Test Plan: Ran kustomize build

Reviewers: zasgar, michelle, jamesbartlett

Reviewed By: zasgar

Signed-off-by: Vihang Mehta <[email protected]>

Differential Revision: https://phab.corp.pixielabs.ai/D12886

GitOrigin-RevId: cb3ac69e96f64dc814bde16f2a740f152666b6df
  • Loading branch information
vihangm authored and copybaranaut committed Jan 21, 2023
1 parent 6a73d2e commit 4dff708
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bazel/kustomize.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def _kustomize_build_impl(ctx):
cmds.append('cp --parents "{}" "$TMP"'.format(ctx.file.kustomization.path))

if len(ctx.attr.replacements) > 0:
cmds.append('pushd "$TMP/$(dirname "{}" &> /dev/null)"'.format(ctx.file.kustomization.path))
cmds.append('pushd "$TMP/$(dirname "{}")" &> /dev/null'.format(ctx.file.kustomization.path))

for old, new in ctx.attr.replacements.items():
cmds.append('"$KUSTOMIZE_BIN" edit set image {}={}:{}'.format(old, new, ctx.var["BUNDLE_VERSION"]))
Expand Down

0 comments on commit 4dff708

Please sign in to comment.