Skip to content

Commit 45d4446

Browse files
dmivankovBencodes
andauthored
ktlint_fix: /bin/bash -> /usr/bin/env bash (#1371)
* ktlint_fix: /bin/bash -> /usr/bin/env bash /usr/bin/env is more portable, can take binary from PATH Upstream https://github.com/bazelbuild/rules_java/blob/master/java/bazel/rules/java_stub_template.txt has adopted it too * Update kotlin/internal/lint/ktlint_fix.bzl Co-authored-by: Dmitry Ivankov <[email protected]> --------- Co-authored-by: Ben Lee <[email protected]>
1 parent d3522ca commit 45d4446

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

kotlin/internal/lint/ktlint_fix.bzl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ def _ktlint_fix_impl(ctx):
1414
args.append("--relative")
1515

1616
# Much of the following is lifted from:
17-
# https://cs.opensource.google/bazel/bazel/+/refs/tags/4.0.0:src/main/java/com/google/devtools/build/lib/bazel/rules/java/java_stub_template.txt;l=114
18-
content = """#!/bin/bash
17+
# https://github.com/bazelbuild/rules_java/blob/master/java/bazel/rules/java_stub_template.txt
18+
content = """#!/usr/bin/env bash
1919
# Find our runfiles tree.
2020
#
2121
# Call this program X. X was generated by a rule.

0 commit comments

Comments
 (0)