Skip to content

Commit 2a03680

Browse files
authored
fix: Switch to using bash env to make module work on NixOS and BSD (#117)
* POSIX compliance - to make it work on NixOS and BSD * switching to bash to make shellcheck happy
1 parent b21ffe6 commit 2a03680

File tree

4 files changed

+4
-7
lines changed

4 files changed

+4
-7
lines changed

examples/dependency_example/scripts/script.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
# Copyright 2018 Google LLC
33
#
44
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -13,7 +13,6 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515

16-
#!/bin/sh
1716

1817
for i in {1..5}
1918
do

examples/script_example/scripts/script.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/bin/sh
22
# Copyright 2018 Google LLC
33
#
44
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -13,8 +13,6 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515

16-
#!/bin/sh
17-
1816
GCLOUD_LOCATION=$(command -v gcloud)
1917
echo "Using gcloud from $GCLOUD_LOCATION"
2018

modules/kubectl-wrapper/scripts/kubectl_wrapper.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 2020 Google LLC
33
#
44
# Licensed under the Apache License, Version 2.0 (the "License");

scripts/check_components.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 2020 Google LLC
33
#
44
# Licensed under the Apache License, Version 2.0 (the "License");

0 commit comments

Comments
 (0)