Skip to content

Commit 17dad76

Browse files
committed
Replace /bin/bash with /usr/bin/env bash
There is a mixed use of /bin/bash (38) and /usr/bin/env bash (62) in this repo, consolidate to be more mac friendly
1 parent 1dd3c44 commit 17dad76

38 files changed

+38
-38
lines changed

gubernator/coverage.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
# Copyright 2016 The Kubernetes Authors.
33
#
44
# Licensed under the Apache License, Version 2.0 (the "License");

gubernator/lint.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
# Copyright 2016 The Kubernetes Authors.
33
#
44
# Licensed under the Apache License, Version 2.0 (the "License");

gubernator/test-gubernator.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
# Copyright 2016 The Kubernetes Authors.
33
#
44
# Licensed under the Apache License, Version 2.0 (the "License");

gubernator/test.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
# Copyright 2016 The Kubernetes Authors.
33
#
44
# Licensed under the Apache License, Version 2.0 (the "License");

gubernator/update_config.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
# Copyright 2017 The Kubernetes Authors.
33
#
44
# Licensed under the Apache License, Version 2.0 (the "License");

gubernator/verify_config.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
# Copyright 2017 The Kubernetes Authors.
33
#
44
# Licensed under the Apache License, Version 2.0 (the "License");

hack/autobump.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
# Copyright 2019 The Kubernetes Authors.
33
#
44
# Licensed under the Apache License, Version 2.0 (the "License");

hack/autodeps.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
# Copyright 2018 The Kubernetes Authors.
33
#
44
# Licensed under the Apache License, Version 2.0 (the "License");

hack/check-pr.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
# Copyright 2018 The Kubernetes Authors.
33
#
44
# Licensed under the Apache License, Version 2.0 (the "License");

hack/print-workspace-status.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
# Copyright 2017 The Kubernetes Authors.
33
#
44
# Licensed under the Apache License, Version 2.0 (the "License");

hack/update-deps.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
# Copyright 2018 The Kubernetes Authors.
33
#
44
# Licensed under the Apache License, Version 2.0 (the "License");

hack/update-gofmt.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
# Copyright 2017 The Kubernetes Authors.
44
#

hack/verify-deps.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
# Copyright 2018 The Kubernetes Authors.
33
#
44
# Licensed under the Apache License, Version 2.0 (the "License");

images/bootstrap/create_bazel_cache_rcs.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
# Copyright 2018 The Kubernetes Authors.
33
#
44
# Licensed under the Apache License, Version 2.0 (the "License");

images/builder/ci-runner.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
# Copyright 2019 The Kubernetes Authors.
33
#
44
# Licensed under the Apache License, Version 2.0 (the "License");

images/gcb-docker-gcloud/buildx-entrypoint.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
# Copyright 2021 The Kubernetes Authors.
33
#
44
# Licensed under the Apache License, Version 2.0 (the "License");

images/kubekins-e2e/install-bazel.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
# Copyright 2018 The Kubernetes Authors.
33
#
44
# Licensed under the Apache License, Version 2.0 (the "License");

images/kubekins-e2e/kops-e2e-runner.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
# Copyright 2016 The Kubernetes Authors.
33
#
44
# Licensed under the Apache License, Version 2.0 (the "License");

jenkins/fake/fake-branch.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
# Copyright 2016 The Kubernetes Authors.
33
#
44
# Licensed under the Apache License, Version 2.0 (the "License");

jenkins/fake/fake-failure.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
# Copyright 2016 The Kubernetes Authors.
33
#
44
# Licensed under the Apache License, Version 2.0 (the "License");

jenkins/fake/fake-pr.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
# Copyright 2016 The Kubernetes Authors.
33
#
44
# Licensed under the Apache License, Version 2.0 (the "License");

kettle/runner.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
# Copyright 2016 The Kubernetes Authors.
33
#
44
# Licensed under the Apache License, Version 2.0 (the "License");

maintenance/migratestatus/migrate-many.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
# Copyright 2017 The Kubernetes Authors.
33
#
44
# Licensed under the Apache License, Version 2.0 (the "License");

prow/bump.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
# Copyright 2016 The Kubernetes Authors.
33
#
44
# Licensed under the Apache License, Version 2.0 (the "License");

prow/cmd/autobump/autobump.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
# Copyright 2019 The Kubernetes Authors.
44
#

prow/cmd/autobump/bump.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
# Copyright 2019 The Kubernetes Authors.
44
#

prow/cmd/deck/validate-static-files.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
# Copyright 2021 The Kubernetes Authors.
33
#
44
# Licensed under the Apache License, Version 2.0 (the "License");

prow/cmd/grandmatriarch/bake.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
# Copyright 2018 The Kubernetes Authors.
33
#
44
# Licensed under the Apache License, Version 2.0 (the "License");

prow/deploy.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
# Copyright 2018 The Kubernetes Authors.
33
#
44
# Licensed under the Apache License, Version 2.0 (the "License");

prow/gcloud-deployer-service-account.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
# Copyright 2019 The Kubernetes Authors.
33
#
44
# Licensed under the Apache License, Version 2.0 (the "License");

prow/push.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
# Copyright 2018 The Kubernetes Authors.
33
#
44
# Licensed under the Apache License, Version 2.0 (the "License");

prow/test/integration-mkpj.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
# Copyright 2018 The Kubernetes Authors.
33
#
44
# Licensed under the Apache License, Version 2.0 (the "License");

testgrid/cmd/transfigure/transfigure.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
# Copyright 2019 The Kubernetes Authors.
33
#
44
# Licensed under the Apache License, Version 2.0 (the "License");

testgrid/config-updater-sa.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
# Copyright 2019 The Kubernetes Authors.
33
#
44
# Licensed under the Apache License, Version 2.0 (the "License");

testgrid/config-upload.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
# Copyright 2016 The Kubernetes Authors.
33
#
44
# Licensed under the Apache License, Version 2.0 (the "License");

triage/update_summaries.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
# Copyright 2020 The Kubernetes Authors.
44
#

velodrome/grafana-stack/datasource.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
# Copyright 2016 The Kubernetes Authors.
44
#

workload-identity/enable-workload-identity.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
# Copyright 2020 The Kubernetes Authors.
33
#
44
# Licensed under the Apache License, Version 2.0 (the "License");

0 commit comments

Comments
 (0)