Skip to content

Commit e5ebe3d

Browse files
benleyerain
authored andcommitted
Use /usr/bin/env bash for more portable shebang lines (#381)
There are still systems widely in use where bash does not exist at /bin/bash (e.g. NixOS), or where /bin/bash is an extremely outdated version of bash (MacOS). Using /usr/bin/env to find it increases portability. It's not hermetic, but /bin/bash was already not hermetic.
1 parent 2c7a3e6 commit e5ebe3d

File tree

7 files changed

+8
-8
lines changed

7 files changed

+8
-8
lines changed

container/incremental_load.sh.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
#
33
# Copyright 2015 The Bazel Authors. All rights reserved.
44
#

container/push-tag.sh.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
# Copyright 2017 The Bazel Authors. All rights reserved.
33
#
44
# Licensed under the Apache License, Version 2.0 (the "License");

container/testenv.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
# Copyright 2015 The Bazel Authors. All rights reserved.
44
#

contrib/push-all.sh.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
# Copyright 2017 The Bazel Authors. All rights reserved.
33
#
44
# Licensed under the Apache License, Version 2.0 (the "License");

contrib/structure-test.sh.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
set -ex
44

testing/e2e.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
#!/bin/bash -e
2-
1+
#!/usr/bin/env bash
2+
set -e
33
# Copyright 2015 The Bazel Authors. All rights reserved.
44
#
55
# Licensed under the Apache License, Version 2.0 (the "License");

update_deps.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
# Copyright 2017 The Bazel Authors. All rights reserved.
33
#
44
# Licensed under the Apache License, Version 2.0 (the "License");

0 commit comments

Comments
 (0)