From 9b15af19b22e91284eeb89827b2091caaec25bf6 Mon Sep 17 00:00:00 2001 From: Matthias Bertschy Date: Mon, 16 Apr 2018 18:31:44 +0200 Subject: [PATCH] Update all script to use /usr/bin/env bash in shebang --- build/build-image/rsyncd.sh | 2 +- build/common.sh | 2 +- build/copy-output.sh | 2 +- build/lib/release.sh | 2 +- build/make-build-image.sh | 2 +- build/make-clean.sh | 2 +- build/package-tarballs.sh | 2 +- build/release-in-a-container.sh | 2 +- build/release.sh | 2 +- build/run.sh | 2 +- build/shell.sh | 2 +- build/util.sh | 2 +- cluster/addons/addon-manager/kube-addons.sh | 2 +- cluster/centos/build.sh | 2 +- cluster/centos/config-build.sh | 2 +- cluster/centos/config-default.sh | 2 +- cluster/centos/config-test.sh | 2 +- cluster/centos/deployAddons.sh | 2 +- cluster/centos/make-ca-cert.sh | 2 +- cluster/centos/master/scripts/apiserver.sh | 2 +- cluster/centos/master/scripts/controller-manager.sh | 2 +- cluster/centos/master/scripts/flannel.sh | 2 +- cluster/centos/master/scripts/post-etcd.sh | 2 +- cluster/centos/master/scripts/scheduler.sh | 2 +- cluster/centos/node/bin/mk-docker-opts.sh | 2 +- cluster/centos/node/bin/remove-docker0.sh | 2 +- cluster/centos/node/scripts/docker.sh | 2 +- cluster/centos/node/scripts/flannel.sh | 2 +- cluster/centos/node/scripts/kubelet.sh | 2 +- cluster/centos/node/scripts/proxy.sh | 2 +- cluster/centos/util.sh | 2 +- cluster/clientbin.sh | 2 +- cluster/common.sh | 2 +- cluster/gce/config-common.sh | 2 +- cluster/gce/config-default.sh | 2 +- cluster/gce/config-test.sh | 2 +- cluster/gce/delete-stranded-load-balancers.sh | 2 +- cluster/gce/gci/configure-helper.sh | 2 +- cluster/gce/gci/configure.sh | 2 +- cluster/gce/gci/flexvolume_node_setup.sh | 4 ++-- cluster/gce/gci/health-monitor.sh | 2 +- cluster/gce/gci/helper.sh | 2 +- cluster/gce/gci/master-helper.sh | 2 +- cluster/gce/gci/node-helper.sh | 2 +- cluster/gce/list-resources.sh | 2 +- cluster/gce/upgrade-aliases.sh | 2 +- cluster/gce/upgrade.sh | 2 +- cluster/gce/util.sh | 2 +- cluster/get-kube-local.sh | 2 +- cluster/juju/config-default.sh | 2 +- cluster/juju/config-test.sh | 2 +- cluster/juju/layers/kubernetes-e2e/actions/test | 2 +- .../juju/layers/kubernetes-master/actions/restart | 2 +- .../exec.d/vmware-patch/charm-pre-install | 2 +- cluster/juju/layers/kubernetes-worker/actions/pause | 2 +- cluster/juju/layers/kubernetes-worker/actions/resume | 2 +- .../exec.d/vmware-patch/charm-pre-install | 2 +- cluster/juju/prereqs/ubuntu-juju.sh | 2 +- cluster/juju/util.sh | 2 +- cluster/kube-down.sh | 2 +- cluster/kube-up.sh | 2 +- cluster/kube-util.sh | 2 +- cluster/kubeadm.sh | 2 +- cluster/kubectl.sh | 2 +- cluster/kubemark/gce/config-default.sh | 2 +- cluster/kubemark/pre-existing/config-default.sh | 2 +- cluster/kubemark/util.sh | 2 +- cluster/kubernetes-anywhere/util.sh | 2 +- cluster/local/util.sh | 2 +- cluster/log-dump/log-dump.sh | 2 +- cluster/pre-existing/util.sh | 2 +- cluster/restore-from-backup.sh | 2 +- cluster/skeleton/util.sh | 2 +- cluster/test-e2e.sh | 2 +- cluster/test-network.sh | 2 +- cluster/test-smoke.sh | 2 +- cluster/update-storage-objects.sh | 2 +- cluster/validate-cluster.sh | 2 +- hack/benchmark-go.sh | 2 +- hack/build-cross.sh | 2 +- hack/build-go.sh | 2 +- hack/build-ui.sh | 2 +- hack/cherry_pick_pull.sh | 2 +- hack/dev-build-and-push.sh | 2 +- hack/dev-build-and-up.sh | 2 +- hack/e2e-internal/e2e-cluster-size.sh | 2 +- hack/e2e-internal/e2e-down.sh | 2 +- hack/e2e-internal/e2e-grow-cluster.sh | 2 +- hack/e2e-internal/e2e-shrink-cluster.sh | 2 +- hack/e2e-internal/e2e-status.sh | 2 +- hack/e2e-internal/e2e-up.sh | 2 +- hack/e2e-node-test.sh | 2 +- hack/gen-swagger-doc/gen-swagger-docs.sh | 2 +- hack/generate-bindata.sh | 2 +- hack/generate-docs.sh | 2 +- hack/get-build.sh | 2 +- hack/ginkgo-e2e.sh | 2 +- hack/godep-restore.sh | 2 +- hack/godep-save.sh | 2 +- hack/grab-profiles.sh | 2 +- hack/install-etcd.sh | 2 +- hack/jenkins/benchmark-dockerized.sh | 2 +- hack/jenkins/build.sh | 2 +- hack/jenkins/gotest.sh | 2 +- hack/jenkins/test-dockerized.sh | 2 +- hack/jenkins/upload-to-gcs.sh | 2 +- hack/jenkins/verify-dockerized.sh | 2 +- hack/jenkins/verify.sh | 2 +- hack/lib/etcd.sh | 2 +- hack/lib/golang.sh | 2 +- hack/lib/init.sh | 2 +- hack/lib/logging.sh | 2 +- hack/lib/protoc.sh | 2 +- hack/lib/swagger.sh | 2 +- hack/lib/test.sh | 2 +- hack/lib/util.sh | 10 +++++----- hack/lib/version.sh | 2 +- hack/list-feature-tests.sh | 2 +- hack/local-up-cluster.sh | 2 +- hack/make-rules/build.sh | 2 +- hack/make-rules/clean.sh | 2 +- hack/make-rules/cross.sh | 2 +- hack/make-rules/helpers/cache_go_dirs.sh | 2 +- hack/make-rules/make-help.sh | 2 +- hack/make-rules/test-cmd-util.sh | 12 ++++++------ hack/make-rules/test-cmd.sh | 2 +- hack/make-rules/test-e2e-node.sh | 2 +- hack/make-rules/test-integration.sh | 2 +- hack/make-rules/test-kubeadm-cmd.sh | 2 +- hack/make-rules/test.sh | 2 +- hack/make-rules/update.sh | 2 +- hack/make-rules/verify.sh | 2 +- hack/make-rules/vet.sh | 2 +- hack/run-in-gopath.sh | 2 +- hack/test-go.sh | 2 +- hack/test-integration.sh | 2 +- hack/test-update-storage-objects.sh | 2 +- hack/update-all.sh | 2 +- hack/update-api-reference-docs.sh | 2 +- hack/update-cloudprovider-gce.sh | 2 +- hack/update-codegen.sh | 2 +- hack/update-generated-device-plugin-dockerized.sh | 2 +- hack/update-generated-device-plugin.sh | 2 +- hack/update-generated-docs.sh | 2 +- hack/update-generated-kms-dockerized.sh | 2 +- hack/update-generated-kms.sh | 2 +- hack/update-generated-protobuf-dockerized.sh | 2 +- hack/update-generated-protobuf.sh | 2 +- hack/update-generated-runtime-dockerized.sh | 2 +- hack/update-generated-runtime.sh | 2 +- hack/update-generated-swagger-docs.sh | 2 +- hack/update-gofmt.sh | 2 +- hack/update-openapi-spec.sh | 2 +- hack/update-staging-godeps-dockerized.sh | 2 +- hack/update-staging-godeps.sh | 2 +- hack/update-swagger-spec.sh | 2 +- hack/update-translations.sh | 2 +- hack/verify-all.sh | 2 +- hack/verify-api-groups.sh | 2 +- hack/verify-api-reference-docs.sh | 2 +- hack/verify-boilerplate.sh | 2 +- hack/verify-cli-conventions.sh | 2 +- hack/verify-cloudprovider-gce.sh | 2 +- hack/verify-codegen.sh | 2 +- hack/verify-description.sh | 2 +- hack/verify-generated-device-plugin.sh | 2 +- hack/verify-generated-docs.sh | 2 +- hack/verify-generated-files-remake.sh | 2 +- hack/verify-generated-kms.sh | 2 +- hack/verify-generated-protobuf.sh | 2 +- hack/verify-generated-runtime.sh | 2 +- hack/verify-generated-swagger-docs.sh | 2 +- hack/verify-godeps.sh | 2 +- hack/verify-gofmt.sh | 2 +- hack/verify-golint.sh | 2 +- hack/verify-govet.sh | 2 +- hack/verify-import-boss.sh | 2 +- hack/verify-imports.sh | 2 +- hack/verify-linkcheck.sh | 2 +- hack/verify-no-vendor-cycles.sh | 2 +- hack/verify-openapi-spec.sh | 2 +- hack/verify-pkg-names.sh | 2 +- hack/verify-readonly-packages.sh | 2 +- hack/verify-staging-godeps.sh | 2 +- hack/verify-swagger-spec.sh | 2 +- hack/verify-symbols.sh | 2 +- hack/verify-test-images.sh | 2 +- hack/verify-typecheck.sh | 2 +- pkg/kubectl/cmd/testdata/edit/record_editor.sh | 2 +- pkg/kubectl/cmd/testdata/edit/record_testcase.sh | 2 +- pkg/kubectl/cmd/testdata/edit/test_editor.sh | 2 +- pkg/kubelet/dockershim/network/cni/cni_test.go | 2 +- pkg/util/verify-util-pkg.sh | 2 +- pkg/volume/flexvolume/flexvolume_test.go | 4 ++-- plugin/pkg/admission/imagepolicy/gencerts.sh | 2 +- .../examples/client-go/hack/update-codegen.sh | 2 +- .../examples/client-go/hack/verify-codegen.sh | 2 +- .../apiextensions-apiserver/hack/build-image.sh | 2 +- .../apiextensions-apiserver/hack/update-codegen.sh | 2 +- .../apiextensions-apiserver/hack/verify-codegen.sh | 2 +- .../admission/plugin/webhook/testcerts/gencerts.sh | 2 +- .../k8s.io/apiserver/pkg/util/webhook/gencerts.sh | 2 +- .../pkg/authenticator/token/oidc/testdata/gen.sh | 2 +- .../plugin/pkg/authorizer/webhook/gencerts.sh | 2 +- .../src/k8s.io/code-generator/hack/update-codegen.sh | 2 +- .../src/k8s.io/code-generator/hack/verify-codegen.sh | 2 +- .../src/k8s.io/kube-aggregator/hack/build-image.sh | 2 +- .../kube-aggregator/hack/local-up-kube-aggregator.sh | 2 +- .../kube-aggregator/hack/register-all-apis-from.sh | 2 +- .../k8s.io/kube-aggregator/hack/update-codegen.sh | 2 +- .../k8s.io/kube-aggregator/hack/verify-codegen.sh | 2 +- staging/src/k8s.io/metrics/hack/update-codegen.sh | 2 +- staging/src/k8s.io/metrics/hack/verify-codegen.sh | 2 +- .../src/k8s.io/sample-apiserver/hack/build-image.sh | 2 +- .../k8s.io/sample-apiserver/hack/update-codegen.sh | 2 +- .../k8s.io/sample-apiserver/hack/verify-codegen.sh | 2 +- .../k8s.io/sample-controller/hack/update-codegen.sh | 2 +- .../k8s.io/sample-controller/hack/verify-codegen.sh | 2 +- test/conformance/conformance_test.sh | 2 +- test/e2e_node/conformance/run_test.sh | 2 +- test/e2e_node/environment/setup_host.sh | 2 +- test/e2e_node/gubernator.sh | 2 +- .../jenkins/conformance/conformance-jenkins.sh | 2 +- test/e2e_node/jenkins/copy-e2e-image.sh | 2 +- test/e2e_node/jenkins/e2e-node-jenkins.sh | 2 +- test/e2e_node/jenkins/ubuntu-14.04-nvidia-install.sh | 2 +- test/fixtures/pkg/kubectl/plugins/env/env.sh | 2 +- test/fixtures/pkg/kubectl/plugins2/hello/hello.sh | 2 +- test/images/image-util.sh | 2 +- test/images/pets/redis-installer/on-start.sh | 2 +- test/images/volumes-tester/ceph/init.sh | 2 +- test/images/volumes-tester/ceph/install.sh | 2 +- test/images/volumes-tester/gluster/run_gluster.sh | 2 +- test/images/volumes-tester/iscsi/create_block.sh | 2 +- test/images/volumes-tester/iscsi/run_iscsid.sh | 2 +- test/images/volumes-tester/nfs/run_nfs.sh | 2 +- test/images/volumes-tester/rbd/bootstrap.sh | 2 +- test/images/volumes-tester/rbd/ceph.conf.sh | 2 +- test/images/volumes-tester/rbd/create_block.sh | 2 +- test/images/volumes-tester/rbd/mds.sh | 2 +- test/images/volumes-tester/rbd/mon.sh | 2 +- test/images/volumes-tester/rbd/osd.sh | 2 +- test/kubemark/cloud-provider-config.sh | 2 +- test/kubemark/common/util.sh | 2 +- test/kubemark/configure-kubectl.sh | 2 +- test/kubemark/gce/util.sh | 2 +- test/kubemark/master-log-dump.sh | 2 +- test/kubemark/pre-existing/util.sh | 2 +- test/kubemark/resources/start-kubemark-master.sh | 2 +- test/kubemark/run-e2e-tests.sh | 2 +- test/kubemark/skeleton/util.sh | 2 +- test/kubemark/start-kubemark.sh | 2 +- test/kubemark/stop-kubemark.sh | 2 +- third_party/forked/shell2junit/sh2ju.sh | 2 +- 254 files changed, 265 insertions(+), 265 deletions(-) diff --git a/build/build-image/rsyncd.sh b/build/build-image/rsyncd.sh index ff155ded3142d..21546e59d48a0 100755 --- a/build/build-image/rsyncd.sh +++ b/build/build-image/rsyncd.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2016 The Kubernetes Authors. # diff --git a/build/common.sh b/build/common.sh index 8b2d5f282551f..383765cae5449 100755 --- a/build/common.sh +++ b/build/common.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 The Kubernetes Authors. # diff --git a/build/copy-output.sh b/build/copy-output.sh index 842cf0a5fbff6..8b18922434785 100755 --- a/build/copy-output.sh +++ b/build/copy-output.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 The Kubernetes Authors. # diff --git a/build/lib/release.sh b/build/lib/release.sh index e595385957a92..4df80e682f1fa 100644 --- a/build/lib/release.sh +++ b/build/lib/release.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2016 The Kubernetes Authors. # diff --git a/build/make-build-image.sh b/build/make-build-image.sh index d4b69605c648c..8ad0e3bbd3179 100755 --- a/build/make-build-image.sh +++ b/build/make-build-image.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 The Kubernetes Authors. # diff --git a/build/make-clean.sh b/build/make-clean.sh index 8d82dfaaf092f..af59f33d13792 100755 --- a/build/make-clean.sh +++ b/build/make-clean.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 The Kubernetes Authors. # diff --git a/build/package-tarballs.sh b/build/package-tarballs.sh index 3fa5cad2d77a3..9432015b85bc8 100755 --- a/build/package-tarballs.sh +++ b/build/package-tarballs.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 The Kubernetes Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/build/release-in-a-container.sh b/build/release-in-a-container.sh index 46dab711ffafd..a160fe927b615 100755 --- a/build/release-in-a-container.sh +++ b/build/release-in-a-container.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 The Kubernetes Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/build/release.sh b/build/release.sh index 63d201c4740c4..9e7876b46c686 100755 --- a/build/release.sh +++ b/build/release.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 The Kubernetes Authors. # diff --git a/build/run.sh b/build/run.sh index 5304f92803743..b0465fb6b38a0 100755 --- a/build/run.sh +++ b/build/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 The Kubernetes Authors. # diff --git a/build/shell.sh b/build/shell.sh index dac2e4949766e..7572cedbc80af 100755 --- a/build/shell.sh +++ b/build/shell.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 The Kubernetes Authors. # diff --git a/build/util.sh b/build/util.sh index db9a7040baf5b..32152ff921489 100644 --- a/build/util.sh +++ b/build/util.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2016 The Kubernetes Authors. # diff --git a/cluster/addons/addon-manager/kube-addons.sh b/cluster/addons/addon-manager/kube-addons.sh index f2002c3fbcada..eb118444d6b99 100755 --- a/cluster/addons/addon-manager/kube-addons.sh +++ b/cluster/addons/addon-manager/kube-addons.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 The Kubernetes Authors. # diff --git a/cluster/centos/build.sh b/cluster/centos/build.sh index 5d314371a8ef9..b7bc78328d6bf 100755 --- a/cluster/centos/build.sh +++ b/cluster/centos/build.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2015 The Kubernetes Authors. # diff --git a/cluster/centos/config-build.sh b/cluster/centos/config-build.sh index 4854f7e1062d4..852c3673fdf6a 100755 --- a/cluster/centos/config-build.sh +++ b/cluster/centos/config-build.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2015 The Kubernetes Authors. # diff --git a/cluster/centos/config-default.sh b/cluster/centos/config-default.sh index d24f59a90e48f..0da86f28fd479 100755 --- a/cluster/centos/config-default.sh +++ b/cluster/centos/config-default.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2015 The Kubernetes Authors. # diff --git a/cluster/centos/config-test.sh b/cluster/centos/config-test.sh index 5a0b917c57915..c3a5c476f7166 100644 --- a/cluster/centos/config-test.sh +++ b/cluster/centos/config-test.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2016 The Kubernetes Authors. # diff --git a/cluster/centos/deployAddons.sh b/cluster/centos/deployAddons.sh index cefbc7c250dd1..349b308ddbd8f 100755 --- a/cluster/centos/deployAddons.sh +++ b/cluster/centos/deployAddons.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2015 The Kubernetes Authors. # diff --git a/cluster/centos/make-ca-cert.sh b/cluster/centos/make-ca-cert.sh index c86f27bba2b4d..37202e3cc6725 100755 --- a/cluster/centos/make-ca-cert.sh +++ b/cluster/centos/make-ca-cert.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 The Kubernetes Authors. # diff --git a/cluster/centos/master/scripts/apiserver.sh b/cluster/centos/master/scripts/apiserver.sh index 686e95d68b6ad..89e834f903536 100755 --- a/cluster/centos/master/scripts/apiserver.sh +++ b/cluster/centos/master/scripts/apiserver.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 The Kubernetes Authors. # diff --git a/cluster/centos/master/scripts/controller-manager.sh b/cluster/centos/master/scripts/controller-manager.sh index 3025d06fda4f2..6fcbe6f9a0579 100755 --- a/cluster/centos/master/scripts/controller-manager.sh +++ b/cluster/centos/master/scripts/controller-manager.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 The Kubernetes Authors. # diff --git a/cluster/centos/master/scripts/flannel.sh b/cluster/centos/master/scripts/flannel.sh index 092fcd8ff6de2..745a29f08d054 100644 --- a/cluster/centos/master/scripts/flannel.sh +++ b/cluster/centos/master/scripts/flannel.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 The Kubernetes Authors. # diff --git a/cluster/centos/master/scripts/post-etcd.sh b/cluster/centos/master/scripts/post-etcd.sh index be18590755c19..6bdfd53094eda 100644 --- a/cluster/centos/master/scripts/post-etcd.sh +++ b/cluster/centos/master/scripts/post-etcd.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 The Kubernetes Authors. # diff --git a/cluster/centos/master/scripts/scheduler.sh b/cluster/centos/master/scripts/scheduler.sh index 202fb1b8d1837..2d9de3a21e549 100755 --- a/cluster/centos/master/scripts/scheduler.sh +++ b/cluster/centos/master/scripts/scheduler.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 The Kubernetes Authors. # diff --git a/cluster/centos/node/bin/mk-docker-opts.sh b/cluster/centos/node/bin/mk-docker-opts.sh index 041d977583847..e45dbc71bca42 100755 --- a/cluster/centos/node/bin/mk-docker-opts.sh +++ b/cluster/centos/node/bin/mk-docker-opts.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 The Kubernetes Authors. # diff --git a/cluster/centos/node/bin/remove-docker0.sh b/cluster/centos/node/bin/remove-docker0.sh index 04b8d824c6262..8c862fbce319d 100755 --- a/cluster/centos/node/bin/remove-docker0.sh +++ b/cluster/centos/node/bin/remove-docker0.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 The Kubernetes Authors. # diff --git a/cluster/centos/node/scripts/docker.sh b/cluster/centos/node/scripts/docker.sh index 320446a5b793b..8b878b24c9bae 100755 --- a/cluster/centos/node/scripts/docker.sh +++ b/cluster/centos/node/scripts/docker.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 The Kubernetes Authors. # diff --git a/cluster/centos/node/scripts/flannel.sh b/cluster/centos/node/scripts/flannel.sh index 58783c5e3b12f..fe9b8e90c94ec 100755 --- a/cluster/centos/node/scripts/flannel.sh +++ b/cluster/centos/node/scripts/flannel.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 The Kubernetes Authors. # diff --git a/cluster/centos/node/scripts/kubelet.sh b/cluster/centos/node/scripts/kubelet.sh index f11a56e9dcce6..a6c0e216da8b7 100755 --- a/cluster/centos/node/scripts/kubelet.sh +++ b/cluster/centos/node/scripts/kubelet.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 The Kubernetes Authors. # diff --git a/cluster/centos/node/scripts/proxy.sh b/cluster/centos/node/scripts/proxy.sh index 584987bf7ef7f..455084866acba 100755 --- a/cluster/centos/node/scripts/proxy.sh +++ b/cluster/centos/node/scripts/proxy.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 The Kubernetes Authors. # diff --git a/cluster/centos/util.sh b/cluster/centos/util.sh index 10378428bca42..efb1c878b134b 100755 --- a/cluster/centos/util.sh +++ b/cluster/centos/util.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2015 The Kubernetes Authors. # diff --git a/cluster/clientbin.sh b/cluster/clientbin.sh index a03a2ca3e36fb..94d6894ef0982 100755 --- a/cluster/clientbin.sh +++ b/cluster/clientbin.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2016 The Kubernetes Authors. # diff --git a/cluster/common.sh b/cluster/common.sh index 6bfd1e7cc63fa..6379219cb7f88 100755 --- a/cluster/common.sh +++ b/cluster/common.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 The Kubernetes Authors. # diff --git a/cluster/gce/config-common.sh b/cluster/gce/config-common.sh index 1515d3e079962..628ad5827192e 100644 --- a/cluster/gce/config-common.sh +++ b/cluster/gce/config-common.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2016 The Kubernetes Authors. # diff --git a/cluster/gce/config-default.sh b/cluster/gce/config-default.sh index 5bdc4745a3895..75c557057763c 100755 --- a/cluster/gce/config-default.sh +++ b/cluster/gce/config-default.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 The Kubernetes Authors. # diff --git a/cluster/gce/config-test.sh b/cluster/gce/config-test.sh index a3e586876c0ca..b7c0af202e71e 100755 --- a/cluster/gce/config-test.sh +++ b/cluster/gce/config-test.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 The Kubernetes Authors. # diff --git a/cluster/gce/delete-stranded-load-balancers.sh b/cluster/gce/delete-stranded-load-balancers.sh index be28ef52ab5d6..b03a7bba0b77f 100755 --- a/cluster/gce/delete-stranded-load-balancers.sh +++ b/cluster/gce/delete-stranded-load-balancers.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2015 The Kubernetes Authors. # diff --git a/cluster/gce/gci/configure-helper.sh b/cluster/gce/gci/configure-helper.sh index 50a11bc24943b..c42912f5a4fe9 100644 --- a/cluster/gce/gci/configure-helper.sh +++ b/cluster/gce/gci/configure-helper.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2016 The Kubernetes Authors. # diff --git a/cluster/gce/gci/configure.sh b/cluster/gce/gci/configure.sh index 14cc0a1e93ef5..4d451858a97f1 100644 --- a/cluster/gce/gci/configure.sh +++ b/cluster/gce/gci/configure.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2016 The Kubernetes Authors. # diff --git a/cluster/gce/gci/flexvolume_node_setup.sh b/cluster/gce/gci/flexvolume_node_setup.sh index ce4d995e95d83..140f52aef2c9d 100755 --- a/cluster/gce/gci/flexvolume_node_setup.sh +++ b/cluster/gce/gci/flexvolume_node_setup.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 The Kubernetes Authors. # @@ -119,7 +119,7 @@ generate_chroot_wrapper() { mkdir -p $wrapper_dir cat >$wrapper_path < "${dest_dir}/${id}-ca-config.json" @@ -576,7 +576,7 @@ function kube::util::create_client_certkey { SEP="," shift 1 done - ${sudo} /bin/bash -e < "/tmp/${client_id}.kubeconfig" mv -f "/tmp/${client_id}.kubeconfig" "${dest_dir}/${client_id}.kubeconfig" chown ${username} "${dest_dir}/${client_id}.kubeconfig" diff --git a/hack/lib/version.sh b/hack/lib/version.sh index 5d77bd0b9ef12..cac14eddb4ac2 100644 --- a/hack/lib/version.sh +++ b/hack/lib/version.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 The Kubernetes Authors. # diff --git a/hack/list-feature-tests.sh b/hack/list-feature-tests.sh index 72ae001261af4..5d5fcf4339b87 100755 --- a/hack/list-feature-tests.sh +++ b/hack/list-feature-tests.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2016 The Kubernetes Authors. # diff --git a/hack/local-up-cluster.sh b/hack/local-up-cluster.sh index 5373468953f72..7191c5fb6974f 100755 --- a/hack/local-up-cluster.sh +++ b/hack/local-up-cluster.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 The Kubernetes Authors. # diff --git a/hack/make-rules/build.sh b/hack/make-rules/build.sh index 472151af118c4..b2496eee1213e 100755 --- a/hack/make-rules/build.sh +++ b/hack/make-rules/build.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 The Kubernetes Authors. # diff --git a/hack/make-rules/clean.sh b/hack/make-rules/clean.sh index ccf0dfc0d9df5..2dc229ebeee3c 100755 --- a/hack/make-rules/clean.sh +++ b/hack/make-rules/clean.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 The Kubernetes Authors. # diff --git a/hack/make-rules/cross.sh b/hack/make-rules/cross.sh index e2c2f9f44d0ec..8e1e93854ee1d 100755 --- a/hack/make-rules/cross.sh +++ b/hack/make-rules/cross.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 The Kubernetes Authors. # diff --git a/hack/make-rules/helpers/cache_go_dirs.sh b/hack/make-rules/helpers/cache_go_dirs.sh index 82402c6676745..35445c675af30 100755 --- a/hack/make-rules/helpers/cache_go_dirs.sh +++ b/hack/make-rules/helpers/cache_go_dirs.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 The Kubernetes Authors. # diff --git a/hack/make-rules/make-help.sh b/hack/make-rules/make-help.sh index e34c41708650e..7228a4bd4c71d 100755 --- a/hack/make-rules/make-help.sh +++ b/hack/make-rules/make-help.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2016 The Kubernetes Authors. # diff --git a/hack/make-rules/test-cmd-util.sh b/hack/make-rules/test-cmd-util.sh index 80cf0d7c7621a..f451d6fbc9f4d 100755 --- a/hack/make-rules/test-cmd-util.sh +++ b/hack/make-rules/test-cmd-util.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2016 The Kubernetes Authors. # @@ -656,7 +656,7 @@ run_pod_tests() { kube::test::get_object_assert rc "{{range.items}}{{$id_field}}:{{end}}" '' ## kubectl create --edit can update the label filed of multiple resources. tmp-editor.sh is a fake editor TEMP=$(mktemp /tmp/tmp-editor-XXXXXXXX.sh) - echo -e "#!/bin/bash\n${SED} -i \"s/mock/modified/g\" \$1" > ${TEMP} + echo -e "#!/usr/bin/env bash\n${SED} -i \"s/mock/modified/g\" \$1" > ${TEMP} chmod +x ${TEMP} # Command EDITOR=${TEMP} kubectl create --edit -f hack/testdata/multi-resource-json.json "${kube_flags[@]}" @@ -803,7 +803,7 @@ __EOF__ kubectl delete node node-v1-test "${kube_flags[@]}" ## kubectl edit can update the image field of a POD. tmp-editor.sh is a fake editor - echo -e "#!/bin/bash\n${SED} -i \"s/nginx/k8s.gcr.io\/serve_hostname/g\" \$1" > /tmp/tmp-editor.sh + echo -e "#!/usr/bin/env bash\n${SED} -i \"s/nginx/k8s.gcr.io\/serve_hostname/g\" \$1" > /tmp/tmp-editor.sh chmod +x /tmp/tmp-editor.sh # Pre-condition: valid-pod POD has image nginx kube::test::get_object_assert pods "{{range.items}}{{$image_field}}:{{end}}" 'nginx:' @@ -1209,7 +1209,7 @@ run_save_config_tests() { ! [[ "$(kubectl get pods test-pod -o yaml "${kube_flags[@]}" | grep kubectl.kubernetes.io/last-applied-configuration)" ]] # Command: edit the pod "test-pod" temp_editor="${KUBE_TEMP}/tmp-editor.sh" - echo -e "#!/bin/bash\n${SED} -i \"s/test-pod-label/test-pod-label-edited/g\" \$@" > "${temp_editor}" + echo -e "#!/usr/bin/env bash\n${SED} -i \"s/test-pod-label/test-pod-label-edited/g\" \$@" > "${temp_editor}" chmod +x "${temp_editor}" EDITOR=${temp_editor} kubectl edit pod test-pod --save-config "${kube_flags[@]}" # Post-Condition: pod "test-pod" has configuration annotation @@ -2080,7 +2080,7 @@ run_recursive_resources_tests() { # Pre-condition: busybox0 & busybox1 PODs exist kube::test::get_object_assert pods "{{range.items}}{{$id_field}}:{{end}}" 'busybox0:busybox1:' # Command - echo -e '#!/bin/bash\nsed -i "s/image: busybox/image: prom\/busybox/g" $1' > /tmp/tmp-editor.sh + echo -e '#!/usr/bin/env bash\nsed -i "s/image: busybox/image: prom\/busybox/g" $1' > /tmp/tmp-editor.sh chmod +x /tmp/tmp-editor.sh output_message=$(! EDITOR=/tmp/tmp-editor.sh kubectl edit -f hack/testdata/recursive/pod --recursive 2>&1 "${kube_flags[@]}") # Post-condition: busybox0 & busybox1 PODs are not edited, and since busybox2 is malformed, it should error @@ -3556,7 +3556,7 @@ run_multi_resources_tests() { fi # Command: kubectl edit multiple resources temp_editor="${KUBE_TEMP}/tmp-editor.sh" - echo -e "#!/bin/bash\n${SED} -i \"s/status\:\ replaced/status\:\ edited/g\" \$@" > "${temp_editor}" + echo -e "#!/usr/bin/env bash\n${SED} -i \"s/status\:\ replaced/status\:\ edited/g\" \$@" > "${temp_editor}" chmod +x "${temp_editor}" EDITOR="${temp_editor}" kubectl edit "${kube_flags[@]}" -f "${file}" # Post-condition: mock service (and mock2) and mock rc (and mock2) are edited diff --git a/hack/make-rules/test-cmd.sh b/hack/make-rules/test-cmd.sh index b68f1eecadf92..a4b4ef33b00d9 100755 --- a/hack/make-rules/test-cmd.sh +++ b/hack/make-rules/test-cmd.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 The Kubernetes Authors. # diff --git a/hack/make-rules/test-e2e-node.sh b/hack/make-rules/test-e2e-node.sh index 3ce6fa36e1f78..2e5c95ae2646b 100755 --- a/hack/make-rules/test-e2e-node.sh +++ b/hack/make-rules/test-e2e-node.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2016 The Kubernetes Authors. # diff --git a/hack/make-rules/test-integration.sh b/hack/make-rules/test-integration.sh index b545e2574c230..b69124df07c66 100755 --- a/hack/make-rules/test-integration.sh +++ b/hack/make-rules/test-integration.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 The Kubernetes Authors. # diff --git a/hack/make-rules/test-kubeadm-cmd.sh b/hack/make-rules/test-kubeadm-cmd.sh index fadb83bdf3ae1..86d82b089268f 100755 --- a/hack/make-rules/test-kubeadm-cmd.sh +++ b/hack/make-rules/test-kubeadm-cmd.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2016 The Kubernetes Authors. # diff --git a/hack/make-rules/test.sh b/hack/make-rules/test.sh index 54feeea8ea852..d935a5c84aa2d 100755 --- a/hack/make-rules/test.sh +++ b/hack/make-rules/test.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 The Kubernetes Authors. # diff --git a/hack/make-rules/update.sh b/hack/make-rules/update.sh index 3ba685e864566..0dd3ba22268a6 100755 --- a/hack/make-rules/update.sh +++ b/hack/make-rules/update.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 The Kubernetes Authors. # diff --git a/hack/make-rules/verify.sh b/hack/make-rules/verify.sh index 13fe2a13b4f81..75fc4083eaeb3 100755 --- a/hack/make-rules/verify.sh +++ b/hack/make-rules/verify.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 The Kubernetes Authors. # diff --git a/hack/make-rules/vet.sh b/hack/make-rules/vet.sh index 0b6efb05184f1..65a0d4945f952 100755 --- a/hack/make-rules/vet.sh +++ b/hack/make-rules/vet.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2016 The Kubernetes Authors. # diff --git a/hack/run-in-gopath.sh b/hack/run-in-gopath.sh index bbd4dd3d156e3..e83dc2cd6edb5 100755 --- a/hack/run-in-gopath.sh +++ b/hack/run-in-gopath.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2016 The Kubernetes Authors. # diff --git a/hack/test-go.sh b/hack/test-go.sh index a1e4e92189a72..380e8d18d40a6 100755 --- a/hack/test-go.sh +++ b/hack/test-go.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2016 The Kubernetes Authors. # diff --git a/hack/test-integration.sh b/hack/test-integration.sh index ad928e03ffe33..59a082c73cd11 100755 --- a/hack/test-integration.sh +++ b/hack/test-integration.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2016 The Kubernetes Authors. # diff --git a/hack/test-update-storage-objects.sh b/hack/test-update-storage-objects.sh index 4c5cc2d745545..8d345a1b43064 100755 --- a/hack/test-update-storage-objects.sh +++ b/hack/test-update-storage-objects.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 The Kubernetes Authors. # diff --git a/hack/update-all.sh b/hack/update-all.sh index 2a9f282bfdd75..ba4311f1c8c0a 100755 --- a/hack/update-all.sh +++ b/hack/update-all.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2018 The Kubernetes Authors. # diff --git a/hack/update-api-reference-docs.sh b/hack/update-api-reference-docs.sh index 6fb808f7a1cb4..59296e4624bb6 100755 --- a/hack/update-api-reference-docs.sh +++ b/hack/update-api-reference-docs.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2016 The Kubernetes Authors. # diff --git a/hack/update-cloudprovider-gce.sh b/hack/update-cloudprovider-gce.sh index 90b8659c5633d..b35c429f8a9b5 100755 --- a/hack/update-cloudprovider-gce.sh +++ b/hack/update-cloudprovider-gce.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2018 The Kubernetes Authors. # diff --git a/hack/update-codegen.sh b/hack/update-codegen.sh index df54bd9220634..a099b1dc69d9a 100755 --- a/hack/update-codegen.sh +++ b/hack/update-codegen.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 The Kubernetes Authors. # diff --git a/hack/update-generated-device-plugin-dockerized.sh b/hack/update-generated-device-plugin-dockerized.sh index 132f0650b46b5..62c5fb34d0dab 100755 --- a/hack/update-generated-device-plugin-dockerized.sh +++ b/hack/update-generated-device-plugin-dockerized.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 The Kubernetes Authors. # diff --git a/hack/update-generated-device-plugin.sh b/hack/update-generated-device-plugin.sh index b7e2b5723ee08..bfd63d8659e3a 100755 --- a/hack/update-generated-device-plugin.sh +++ b/hack/update-generated-device-plugin.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 The Kubernetes Authors. # diff --git a/hack/update-generated-docs.sh b/hack/update-generated-docs.sh index 6d5ed939ff102..d1f49ef53355e 100755 --- a/hack/update-generated-docs.sh +++ b/hack/update-generated-docs.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 The Kubernetes Authors. # diff --git a/hack/update-generated-kms-dockerized.sh b/hack/update-generated-kms-dockerized.sh index 102e25359294a..7d61e67e2225a 100755 --- a/hack/update-generated-kms-dockerized.sh +++ b/hack/update-generated-kms-dockerized.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2018 The Kubernetes Authors. # diff --git a/hack/update-generated-kms.sh b/hack/update-generated-kms.sh index 95a0ee80ca379..431b1bf41b442 100755 --- a/hack/update-generated-kms.sh +++ b/hack/update-generated-kms.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2018 The Kubernetes Authors. # diff --git a/hack/update-generated-protobuf-dockerized.sh b/hack/update-generated-protobuf-dockerized.sh index 2b95f6e27edf3..ef49dffcb6b20 100755 --- a/hack/update-generated-protobuf-dockerized.sh +++ b/hack/update-generated-protobuf-dockerized.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2015 The Kubernetes Authors. # diff --git a/hack/update-generated-protobuf.sh b/hack/update-generated-protobuf.sh index f2cf01c0f0d97..bf8c5d4002f7c 100755 --- a/hack/update-generated-protobuf.sh +++ b/hack/update-generated-protobuf.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2015 The Kubernetes Authors. # diff --git a/hack/update-generated-runtime-dockerized.sh b/hack/update-generated-runtime-dockerized.sh index 13d9c2244107c..43dbc560fce33 100755 --- a/hack/update-generated-runtime-dockerized.sh +++ b/hack/update-generated-runtime-dockerized.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2016 The Kubernetes Authors. # diff --git a/hack/update-generated-runtime.sh b/hack/update-generated-runtime.sh index c347c01a69f44..04b879910c0f4 100755 --- a/hack/update-generated-runtime.sh +++ b/hack/update-generated-runtime.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2016 The Kubernetes Authors. # diff --git a/hack/update-generated-swagger-docs.sh b/hack/update-generated-swagger-docs.sh index 0e91c994141af..536ec65b1ed9e 100755 --- a/hack/update-generated-swagger-docs.sh +++ b/hack/update-generated-swagger-docs.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2015 The Kubernetes Authors. # diff --git a/hack/update-gofmt.sh b/hack/update-gofmt.sh index 83800c6eeeda1..c3220e3bbda2a 100755 --- a/hack/update-gofmt.sh +++ b/hack/update-gofmt.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 The Kubernetes Authors. # diff --git a/hack/update-openapi-spec.sh b/hack/update-openapi-spec.sh index b0016bc29b9de..09ff980a7183b 100755 --- a/hack/update-openapi-spec.sh +++ b/hack/update-openapi-spec.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2016 The Kubernetes Authors. # diff --git a/hack/update-staging-godeps-dockerized.sh b/hack/update-staging-godeps-dockerized.sh index 9399ba7bf36ae..877e43b2d2550 100755 --- a/hack/update-staging-godeps-dockerized.sh +++ b/hack/update-staging-godeps-dockerized.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 The Kubernetes Authors. # diff --git a/hack/update-staging-godeps.sh b/hack/update-staging-godeps.sh index 0b5c11b1d5bbc..75da7a411a524 100755 --- a/hack/update-staging-godeps.sh +++ b/hack/update-staging-godeps.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 The Kubernetes Authors. # diff --git a/hack/update-swagger-spec.sh b/hack/update-swagger-spec.sh index fc363fa57c994..fef20e8e5aa70 100755 --- a/hack/update-swagger-spec.sh +++ b/hack/update-swagger-spec.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2015 The Kubernetes Authors. # diff --git a/hack/update-translations.sh b/hack/update-translations.sh index 65d9c728535ca..69b4e50c83a8d 100755 --- a/hack/update-translations.sh +++ b/hack/update-translations.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 The Kubernetes Authors. # diff --git a/hack/verify-all.sh b/hack/verify-all.sh index 45a9a571e1353..75ab1e9e927e1 100755 --- a/hack/verify-all.sh +++ b/hack/verify-all.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2016 The Kubernetes Authors. # diff --git a/hack/verify-api-groups.sh b/hack/verify-api-groups.sh index 88de8b7f6ab35..27563730119c4 100755 --- a/hack/verify-api-groups.sh +++ b/hack/verify-api-groups.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2016 The Kubernetes Authors. # diff --git a/hack/verify-api-reference-docs.sh b/hack/verify-api-reference-docs.sh index e41256f9c9a9f..afc2c79cc99ae 100755 --- a/hack/verify-api-reference-docs.sh +++ b/hack/verify-api-reference-docs.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2015 The Kubernetes Authors. # diff --git a/hack/verify-boilerplate.sh b/hack/verify-boilerplate.sh index 149bf117115f2..cb45b73dde883 100755 --- a/hack/verify-boilerplate.sh +++ b/hack/verify-boilerplate.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 The Kubernetes Authors. # diff --git a/hack/verify-cli-conventions.sh b/hack/verify-cli-conventions.sh index 935d5dc0d712b..337bec95ce25b 100755 --- a/hack/verify-cli-conventions.sh +++ b/hack/verify-cli-conventions.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2016 The Kubernetes Authors. # diff --git a/hack/verify-cloudprovider-gce.sh b/hack/verify-cloudprovider-gce.sh index 1aae5aae42ad8..c6b3bd89af78a 100755 --- a/hack/verify-cloudprovider-gce.sh +++ b/hack/verify-cloudprovider-gce.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2018 The Kubernetes Authors. # diff --git a/hack/verify-codegen.sh b/hack/verify-codegen.sh index 02b979c2f9a2c..3a5b69394c9db 100755 --- a/hack/verify-codegen.sh +++ b/hack/verify-codegen.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 The Kubernetes Authors. # diff --git a/hack/verify-description.sh b/hack/verify-description.sh index 79fc2f3bc69ca..d35145f95fd91 100755 --- a/hack/verify-description.sh +++ b/hack/verify-description.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 The Kubernetes Authors. # diff --git a/hack/verify-generated-device-plugin.sh b/hack/verify-generated-device-plugin.sh index 7427a9811cb35..817ffda36054c 100755 --- a/hack/verify-generated-device-plugin.sh +++ b/hack/verify-generated-device-plugin.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 The Kubernetes Authors. # diff --git a/hack/verify-generated-docs.sh b/hack/verify-generated-docs.sh index 9331343b1e59d..d583abc051979 100755 --- a/hack/verify-generated-docs.sh +++ b/hack/verify-generated-docs.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 The Kubernetes Authors. # diff --git a/hack/verify-generated-files-remake.sh b/hack/verify-generated-files-remake.sh index c4b43415e4ad9..9c80a6bc01342 100644 --- a/hack/verify-generated-files-remake.sh +++ b/hack/verify-generated-files-remake.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 The Kubernetes Authors. # diff --git a/hack/verify-generated-kms.sh b/hack/verify-generated-kms.sh index 03738b52e0491..eeff02dbf4010 100755 --- a/hack/verify-generated-kms.sh +++ b/hack/verify-generated-kms.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2018 The Kubernetes Authors. # diff --git a/hack/verify-generated-protobuf.sh b/hack/verify-generated-protobuf.sh index a57f0fe4d779d..a692687e2a82e 100755 --- a/hack/verify-generated-protobuf.sh +++ b/hack/verify-generated-protobuf.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2015 The Kubernetes Authors. # diff --git a/hack/verify-generated-runtime.sh b/hack/verify-generated-runtime.sh index 3e1132547a76c..6443cc4f9cb6b 100755 --- a/hack/verify-generated-runtime.sh +++ b/hack/verify-generated-runtime.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2016 The Kubernetes Authors. # diff --git a/hack/verify-generated-swagger-docs.sh b/hack/verify-generated-swagger-docs.sh index ef93c4e06131f..eec14769bbe14 100755 --- a/hack/verify-generated-swagger-docs.sh +++ b/hack/verify-generated-swagger-docs.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2015 The Kubernetes Authors. # diff --git a/hack/verify-godeps.sh b/hack/verify-godeps.sh index 7938c310a702a..a7f46f99a7ba1 100755 --- a/hack/verify-godeps.sh +++ b/hack/verify-godeps.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2015 The Kubernetes Authors. # diff --git a/hack/verify-gofmt.sh b/hack/verify-gofmt.sh index 3ec0e61d69f30..ff8797d18db6c 100755 --- a/hack/verify-gofmt.sh +++ b/hack/verify-gofmt.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 The Kubernetes Authors. # diff --git a/hack/verify-golint.sh b/hack/verify-golint.sh index 1b0b04430c72f..0829f18efdc8b 100755 --- a/hack/verify-golint.sh +++ b/hack/verify-golint.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 The Kubernetes Authors. # diff --git a/hack/verify-govet.sh b/hack/verify-govet.sh index 223821d08c401..edc0d314ab8e5 100755 --- a/hack/verify-govet.sh +++ b/hack/verify-govet.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2016 The Kubernetes Authors. # diff --git a/hack/verify-import-boss.sh b/hack/verify-import-boss.sh index 7e112a4ac69d3..30681fbbdde37 100755 --- a/hack/verify-import-boss.sh +++ b/hack/verify-import-boss.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 The Kubernetes Authors. # diff --git a/hack/verify-imports.sh b/hack/verify-imports.sh index a845fa2a0b387..ba9951bdaca48 100755 --- a/hack/verify-imports.sh +++ b/hack/verify-imports.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 The Kubernetes Authors. # diff --git a/hack/verify-linkcheck.sh b/hack/verify-linkcheck.sh index 69427f3ba3f89..493c0f87028d6 100755 --- a/hack/verify-linkcheck.sh +++ b/hack/verify-linkcheck.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 The Kubernetes Authors. # diff --git a/hack/verify-no-vendor-cycles.sh b/hack/verify-no-vendor-cycles.sh index 02fa8b294cee0..e245f76954fd5 100755 --- a/hack/verify-no-vendor-cycles.sh +++ b/hack/verify-no-vendor-cycles.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 The Kubernetes Authors. # diff --git a/hack/verify-openapi-spec.sh b/hack/verify-openapi-spec.sh index 08b1edcbe3baa..0fa0396648064 100755 --- a/hack/verify-openapi-spec.sh +++ b/hack/verify-openapi-spec.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2016 The Kubernetes Authors. # diff --git a/hack/verify-pkg-names.sh b/hack/verify-pkg-names.sh index 8fbb09282a21e..3466072849093 100755 --- a/hack/verify-pkg-names.sh +++ b/hack/verify-pkg-names.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2016 The Kubernetes Authors. # diff --git a/hack/verify-readonly-packages.sh b/hack/verify-readonly-packages.sh index babf558e80d82..87864a61a3884 100755 --- a/hack/verify-readonly-packages.sh +++ b/hack/verify-readonly-packages.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 The Kubernetes Authors. # diff --git a/hack/verify-staging-godeps.sh b/hack/verify-staging-godeps.sh index 7177ac639e979..e984d164a166d 100755 --- a/hack/verify-staging-godeps.sh +++ b/hack/verify-staging-godeps.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 The Kubernetes Authors. # diff --git a/hack/verify-swagger-spec.sh b/hack/verify-swagger-spec.sh index 92ee2bcb6b16c..864df660bf954 100755 --- a/hack/verify-swagger-spec.sh +++ b/hack/verify-swagger-spec.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2015 The Kubernetes Authors. # diff --git a/hack/verify-symbols.sh b/hack/verify-symbols.sh index aa5870a29603d..ebd09aab173f4 100755 --- a/hack/verify-symbols.sh +++ b/hack/verify-symbols.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 The Kubernetes Authors. # diff --git a/hack/verify-test-images.sh b/hack/verify-test-images.sh index 8c60fb4352bf1..7ef6a081f4669 100755 --- a/hack/verify-test-images.sh +++ b/hack/verify-test-images.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 The Kubernetes Authors. # diff --git a/hack/verify-typecheck.sh b/hack/verify-typecheck.sh index bd55f592961d5..092b8f2e0b19d 100755 --- a/hack/verify-typecheck.sh +++ b/hack/verify-typecheck.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2018 The Kubernetes Authors. # diff --git a/pkg/kubectl/cmd/testdata/edit/record_editor.sh b/pkg/kubectl/cmd/testdata/edit/record_editor.sh index 0a7d4c376eacc..a2ba2d6fbce51 100755 --- a/pkg/kubectl/cmd/testdata/edit/record_editor.sh +++ b/pkg/kubectl/cmd/testdata/edit/record_editor.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 The Kubernetes Authors. # diff --git a/pkg/kubectl/cmd/testdata/edit/record_testcase.sh b/pkg/kubectl/cmd/testdata/edit/record_testcase.sh index 9a51c351c6680..1181912dcb493 100755 --- a/pkg/kubectl/cmd/testdata/edit/record_testcase.sh +++ b/pkg/kubectl/cmd/testdata/edit/record_testcase.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 The Kubernetes Authors. # diff --git a/pkg/kubectl/cmd/testdata/edit/test_editor.sh b/pkg/kubectl/cmd/testdata/edit/test_editor.sh index 268a8078c2a7f..387e255d0f72c 100755 --- a/pkg/kubectl/cmd/testdata/edit/test_editor.sh +++ b/pkg/kubectl/cmd/testdata/edit/test_editor.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 The Kubernetes Authors. # diff --git a/pkg/kubelet/dockershim/network/cni/cni_test.go b/pkg/kubelet/dockershim/network/cni/cni_test.go index 6e23c1cdea31a..b8ffbe4eb117c 100644 --- a/pkg/kubelet/dockershim/network/cni/cni_test.go +++ b/pkg/kubelet/dockershim/network/cni/cni_test.go @@ -71,7 +71,7 @@ func installPluginUnderTest(t *testing.T, testBinDir, testConfDir, testDataDir, pluginExec := path.Join(testBinDir, binName) f, err = os.Create(pluginExec) - const execScriptTempl = `#!/bin/bash + const execScriptTempl = `#!/usr/bin/env bash cat > {{.InputFile}} env > {{.OutputEnv}} echo "%@" >> {{.OutputEnv}} diff --git a/pkg/util/verify-util-pkg.sh b/pkg/util/verify-util-pkg.sh index 2b8d628ebc084..5c1fbecc71ddc 100755 --- a/pkg/util/verify-util-pkg.sh +++ b/pkg/util/verify-util-pkg.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 The Kubernetes Authors. # diff --git a/pkg/volume/flexvolume/flexvolume_test.go b/pkg/volume/flexvolume/flexvolume_test.go index c90ad49322d86..930c4665411f5 100644 --- a/pkg/volume/flexvolume/flexvolume_test.go +++ b/pkg/volume/flexvolume/flexvolume_test.go @@ -30,7 +30,7 @@ import ( volumetest "k8s.io/kubernetes/pkg/volume/testing" ) -const execScriptTempl1 = `#!/bin/bash +const execScriptTempl1 = `#!/usr/bin/env bash if [ "$1" == "init" -a $# -eq 1 ]; then echo -n '{ "status": "Success" @@ -73,7 +73,7 @@ exit 1 echo -n $@ &> {{.OutputFile}} ` -const execScriptTempl2 = `#!/bin/bash +const execScriptTempl2 = `#!/usr/bin/env bash if [ "$1" == "init" -a $# -eq 1 ]; then echo -n '{ "status": "Success" diff --git a/plugin/pkg/admission/imagepolicy/gencerts.sh b/plugin/pkg/admission/imagepolicy/gencerts.sh index 384e8f4e9d16f..30304922d86c0 100755 --- a/plugin/pkg/admission/imagepolicy/gencerts.sh +++ b/plugin/pkg/admission/imagepolicy/gencerts.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2016 The Kubernetes Authors. # diff --git a/staging/src/k8s.io/apiextensions-apiserver/examples/client-go/hack/update-codegen.sh b/staging/src/k8s.io/apiextensions-apiserver/examples/client-go/hack/update-codegen.sh index 3659ad330022a..ea26ad63cca34 100755 --- a/staging/src/k8s.io/apiextensions-apiserver/examples/client-go/hack/update-codegen.sh +++ b/staging/src/k8s.io/apiextensions-apiserver/examples/client-go/hack/update-codegen.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 The Kubernetes Authors. # diff --git a/staging/src/k8s.io/apiextensions-apiserver/examples/client-go/hack/verify-codegen.sh b/staging/src/k8s.io/apiextensions-apiserver/examples/client-go/hack/verify-codegen.sh index 9cc02a5a4a275..d02a6fa395e0b 100755 --- a/staging/src/k8s.io/apiextensions-apiserver/examples/client-go/hack/verify-codegen.sh +++ b/staging/src/k8s.io/apiextensions-apiserver/examples/client-go/hack/verify-codegen.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 The Kubernetes Authors. # diff --git a/staging/src/k8s.io/apiextensions-apiserver/hack/build-image.sh b/staging/src/k8s.io/apiextensions-apiserver/hack/build-image.sh index c9152a4de1c3a..d0d129078f35b 100755 --- a/staging/src/k8s.io/apiextensions-apiserver/hack/build-image.sh +++ b/staging/src/k8s.io/apiextensions-apiserver/hack/build-image.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 The Kubernetes Authors. # diff --git a/staging/src/k8s.io/apiextensions-apiserver/hack/update-codegen.sh b/staging/src/k8s.io/apiextensions-apiserver/hack/update-codegen.sh index 9c98ebf4d3a71..a586b48e0eb1d 100755 --- a/staging/src/k8s.io/apiextensions-apiserver/hack/update-codegen.sh +++ b/staging/src/k8s.io/apiextensions-apiserver/hack/update-codegen.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 The Kubernetes Authors. # diff --git a/staging/src/k8s.io/apiextensions-apiserver/hack/verify-codegen.sh b/staging/src/k8s.io/apiextensions-apiserver/hack/verify-codegen.sh index f5835c42538bc..ab43ba23d01cd 100755 --- a/staging/src/k8s.io/apiextensions-apiserver/hack/verify-codegen.sh +++ b/staging/src/k8s.io/apiextensions-apiserver/hack/verify-codegen.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 The Kubernetes Authors. # diff --git a/staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/testcerts/gencerts.sh b/staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/testcerts/gencerts.sh index d4145c606acae..98503f69f44c8 100755 --- a/staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/testcerts/gencerts.sh +++ b/staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/testcerts/gencerts.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 The Kubernetes Authors. # diff --git a/staging/src/k8s.io/apiserver/pkg/util/webhook/gencerts.sh b/staging/src/k8s.io/apiserver/pkg/util/webhook/gencerts.sh index fdceb957162e5..a042ab62af8c9 100755 --- a/staging/src/k8s.io/apiserver/pkg/util/webhook/gencerts.sh +++ b/staging/src/k8s.io/apiserver/pkg/util/webhook/gencerts.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 The Kubernetes Authors. # diff --git a/staging/src/k8s.io/apiserver/plugin/pkg/authenticator/token/oidc/testdata/gen.sh b/staging/src/k8s.io/apiserver/plugin/pkg/authenticator/token/oidc/testdata/gen.sh index a3daa0fc43879..922e64e5a2491 100755 --- a/staging/src/k8s.io/apiserver/plugin/pkg/authenticator/token/oidc/testdata/gen.sh +++ b/staging/src/k8s.io/apiserver/plugin/pkg/authenticator/token/oidc/testdata/gen.sh @@ -1,4 +1,4 @@ -#!/bin/bash -e +#!/usr/bin/env bash -e # Copyright 2018 The Kubernetes Authors. # diff --git a/staging/src/k8s.io/apiserver/plugin/pkg/authorizer/webhook/gencerts.sh b/staging/src/k8s.io/apiserver/plugin/pkg/authorizer/webhook/gencerts.sh index 8d7896fa5ee05..1e5fb1fd50301 100755 --- a/staging/src/k8s.io/apiserver/plugin/pkg/authorizer/webhook/gencerts.sh +++ b/staging/src/k8s.io/apiserver/plugin/pkg/authorizer/webhook/gencerts.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2016 The Kubernetes Authors. # diff --git a/staging/src/k8s.io/code-generator/hack/update-codegen.sh b/staging/src/k8s.io/code-generator/hack/update-codegen.sh index e38a0d92c05cc..767c2ab36b5e5 100755 --- a/staging/src/k8s.io/code-generator/hack/update-codegen.sh +++ b/staging/src/k8s.io/code-generator/hack/update-codegen.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 The Kubernetes Authors. # diff --git a/staging/src/k8s.io/code-generator/hack/verify-codegen.sh b/staging/src/k8s.io/code-generator/hack/verify-codegen.sh index 601a76962c838..25302228dfa98 100755 --- a/staging/src/k8s.io/code-generator/hack/verify-codegen.sh +++ b/staging/src/k8s.io/code-generator/hack/verify-codegen.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 The Kubernetes Authors. # diff --git a/staging/src/k8s.io/kube-aggregator/hack/build-image.sh b/staging/src/k8s.io/kube-aggregator/hack/build-image.sh index 6aae5fb624053..ee09df3ebd125 100755 --- a/staging/src/k8s.io/kube-aggregator/hack/build-image.sh +++ b/staging/src/k8s.io/kube-aggregator/hack/build-image.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2014 The Kubernetes Authors. # diff --git a/staging/src/k8s.io/kube-aggregator/hack/local-up-kube-aggregator.sh b/staging/src/k8s.io/kube-aggregator/hack/local-up-kube-aggregator.sh index cc00878dac762..158d02affa31b 100755 --- a/staging/src/k8s.io/kube-aggregator/hack/local-up-kube-aggregator.sh +++ b/staging/src/k8s.io/kube-aggregator/hack/local-up-kube-aggregator.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2016 The Kubernetes Authors. # diff --git a/staging/src/k8s.io/kube-aggregator/hack/register-all-apis-from.sh b/staging/src/k8s.io/kube-aggregator/hack/register-all-apis-from.sh index 34f6693d7c26b..fc20f937687ca 100755 --- a/staging/src/k8s.io/kube-aggregator/hack/register-all-apis-from.sh +++ b/staging/src/k8s.io/kube-aggregator/hack/register-all-apis-from.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 The Kubernetes Authors. # diff --git a/staging/src/k8s.io/kube-aggregator/hack/update-codegen.sh b/staging/src/k8s.io/kube-aggregator/hack/update-codegen.sh index 04fcb9861c5d1..43a4d57156bbb 100755 --- a/staging/src/k8s.io/kube-aggregator/hack/update-codegen.sh +++ b/staging/src/k8s.io/kube-aggregator/hack/update-codegen.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2016 The Kubernetes Authors. # diff --git a/staging/src/k8s.io/kube-aggregator/hack/verify-codegen.sh b/staging/src/k8s.io/kube-aggregator/hack/verify-codegen.sh index 4678e5e3c9e32..9fae05895f03c 100755 --- a/staging/src/k8s.io/kube-aggregator/hack/verify-codegen.sh +++ b/staging/src/k8s.io/kube-aggregator/hack/verify-codegen.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2016 The Kubernetes Authors. # diff --git a/staging/src/k8s.io/metrics/hack/update-codegen.sh b/staging/src/k8s.io/metrics/hack/update-codegen.sh index bb55d7388065f..87694c333e097 100755 --- a/staging/src/k8s.io/metrics/hack/update-codegen.sh +++ b/staging/src/k8s.io/metrics/hack/update-codegen.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 The Kubernetes Authors. # diff --git a/staging/src/k8s.io/metrics/hack/verify-codegen.sh b/staging/src/k8s.io/metrics/hack/verify-codegen.sh index f5835c42538bc..ab43ba23d01cd 100755 --- a/staging/src/k8s.io/metrics/hack/verify-codegen.sh +++ b/staging/src/k8s.io/metrics/hack/verify-codegen.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 The Kubernetes Authors. # diff --git a/staging/src/k8s.io/sample-apiserver/hack/build-image.sh b/staging/src/k8s.io/sample-apiserver/hack/build-image.sh index c8b9df0632679..c1b3c7685895f 100755 --- a/staging/src/k8s.io/sample-apiserver/hack/build-image.sh +++ b/staging/src/k8s.io/sample-apiserver/hack/build-image.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 The Kubernetes Authors. # diff --git a/staging/src/k8s.io/sample-apiserver/hack/update-codegen.sh b/staging/src/k8s.io/sample-apiserver/hack/update-codegen.sh index b0b0cefc76520..9dcc8f10242a6 100755 --- a/staging/src/k8s.io/sample-apiserver/hack/update-codegen.sh +++ b/staging/src/k8s.io/sample-apiserver/hack/update-codegen.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 The Kubernetes Authors. # diff --git a/staging/src/k8s.io/sample-apiserver/hack/verify-codegen.sh b/staging/src/k8s.io/sample-apiserver/hack/verify-codegen.sh index f5835c42538bc..ab43ba23d01cd 100755 --- a/staging/src/k8s.io/sample-apiserver/hack/verify-codegen.sh +++ b/staging/src/k8s.io/sample-apiserver/hack/verify-codegen.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 The Kubernetes Authors. # diff --git a/staging/src/k8s.io/sample-controller/hack/update-codegen.sh b/staging/src/k8s.io/sample-controller/hack/update-codegen.sh index 3697707b72de7..1423a1afd9aed 100755 --- a/staging/src/k8s.io/sample-controller/hack/update-codegen.sh +++ b/staging/src/k8s.io/sample-controller/hack/update-codegen.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 The Kubernetes Authors. # diff --git a/staging/src/k8s.io/sample-controller/hack/verify-codegen.sh b/staging/src/k8s.io/sample-controller/hack/verify-codegen.sh index 9cc02a5a4a275..d02a6fa395e0b 100755 --- a/staging/src/k8s.io/sample-controller/hack/verify-codegen.sh +++ b/staging/src/k8s.io/sample-controller/hack/verify-codegen.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 The Kubernetes Authors. # diff --git a/test/conformance/conformance_test.sh b/test/conformance/conformance_test.sh index 04113c09b6e5d..dc448849c63be 100755 --- a/test/conformance/conformance_test.sh +++ b/test/conformance/conformance_test.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 The Kubernetes Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/test/e2e_node/conformance/run_test.sh b/test/e2e_node/conformance/run_test.sh index 6ddb247883256..3e27859ae7492 100755 --- a/test/e2e_node/conformance/run_test.sh +++ b/test/e2e_node/conformance/run_test.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2016 The Kubernetes Authors. # diff --git a/test/e2e_node/environment/setup_host.sh b/test/e2e_node/environment/setup_host.sh index 2069a3a4947b4..5ea0ab1dc03e4 100755 --- a/test/e2e_node/environment/setup_host.sh +++ b/test/e2e_node/environment/setup_host.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2016 The Kubernetes Authors. # diff --git a/test/e2e_node/gubernator.sh b/test/e2e_node/gubernator.sh index 97f3da8ce38af..a8a11bfd7b8ae 100755 --- a/test/e2e_node/gubernator.sh +++ b/test/e2e_node/gubernator.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2016 The Kubernetes Authors. # diff --git a/test/e2e_node/jenkins/conformance/conformance-jenkins.sh b/test/e2e_node/jenkins/conformance/conformance-jenkins.sh index 422a149b1b97a..9e8715287cf1d 100755 --- a/test/e2e_node/jenkins/conformance/conformance-jenkins.sh +++ b/test/e2e_node/jenkins/conformance/conformance-jenkins.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2016 The Kubernetes Authors. # diff --git a/test/e2e_node/jenkins/copy-e2e-image.sh b/test/e2e_node/jenkins/copy-e2e-image.sh index 4389f5816a75b..18ff7c6310b54 100755 --- a/test/e2e_node/jenkins/copy-e2e-image.sh +++ b/test/e2e_node/jenkins/copy-e2e-image.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2016 The Kubernetes Authors. # diff --git a/test/e2e_node/jenkins/e2e-node-jenkins.sh b/test/e2e_node/jenkins/e2e-node-jenkins.sh index c0f83e59e7957..a1caae4ad95f4 100755 --- a/test/e2e_node/jenkins/e2e-node-jenkins.sh +++ b/test/e2e_node/jenkins/e2e-node-jenkins.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2016 The Kubernetes Authors. # diff --git a/test/e2e_node/jenkins/ubuntu-14.04-nvidia-install.sh b/test/e2e_node/jenkins/ubuntu-14.04-nvidia-install.sh index 6d6d27719d7e6..f83e53c18ec4d 100644 --- a/test/e2e_node/jenkins/ubuntu-14.04-nvidia-install.sh +++ b/test/e2e_node/jenkins/ubuntu-14.04-nvidia-install.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 The Kubernetes Authors. # diff --git a/test/fixtures/pkg/kubectl/plugins/env/env.sh b/test/fixtures/pkg/kubectl/plugins/env/env.sh index b7d005519d373..44c9a4f335741 100755 --- a/test/fixtures/pkg/kubectl/plugins/env/env.sh +++ b/test/fixtures/pkg/kubectl/plugins/env/env.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 The Kubernetes Authors. # diff --git a/test/fixtures/pkg/kubectl/plugins2/hello/hello.sh b/test/fixtures/pkg/kubectl/plugins2/hello/hello.sh index 86ade760479c4..c3d7075b4cbc7 100755 --- a/test/fixtures/pkg/kubectl/plugins2/hello/hello.sh +++ b/test/fixtures/pkg/kubectl/plugins2/hello/hello.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 The Kubernetes Authors. # diff --git a/test/images/image-util.sh b/test/images/image-util.sh index 5d9b777b8fce4..0c092a4a99abd 100755 --- a/test/images/image-util.sh +++ b/test/images/image-util.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 The Kubernetes Authors. # diff --git a/test/images/pets/redis-installer/on-start.sh b/test/images/pets/redis-installer/on-start.sh index e11938894069d..dd9a4e656c59a 100755 --- a/test/images/pets/redis-installer/on-start.sh +++ b/test/images/pets/redis-installer/on-start.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2016 The Kubernetes Authors. # diff --git a/test/images/volumes-tester/ceph/init.sh b/test/images/volumes-tester/ceph/init.sh index 213630dd2b52b..f7981405e5d30 100755 --- a/test/images/volumes-tester/ceph/init.sh +++ b/test/images/volumes-tester/ceph/init.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2015 The Kubernetes Authors. # diff --git a/test/images/volumes-tester/ceph/install.sh b/test/images/volumes-tester/ceph/install.sh index 6a96ad9740e68..5cdeecf9df419 100755 --- a/test/images/volumes-tester/ceph/install.sh +++ b/test/images/volumes-tester/ceph/install.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2015 The Kubernetes Authors. # diff --git a/test/images/volumes-tester/gluster/run_gluster.sh b/test/images/volumes-tester/gluster/run_gluster.sh index 5e564b45bc6ac..0cf5cb48c31c8 100755 --- a/test/images/volumes-tester/gluster/run_gluster.sh +++ b/test/images/volumes-tester/gluster/run_gluster.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2015 The Kubernetes Authors. # diff --git a/test/images/volumes-tester/iscsi/create_block.sh b/test/images/volumes-tester/iscsi/create_block.sh index 2fbc61faca2db..9421568690b02 100755 --- a/test/images/volumes-tester/iscsi/create_block.sh +++ b/test/images/volumes-tester/iscsi/create_block.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2015 The Kubernetes Authors. # diff --git a/test/images/volumes-tester/iscsi/run_iscsid.sh b/test/images/volumes-tester/iscsi/run_iscsid.sh index 2720287745aaf..a5bded46cdb47 100755 --- a/test/images/volumes-tester/iscsi/run_iscsid.sh +++ b/test/images/volumes-tester/iscsi/run_iscsid.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2015 The Kubernetes Authors. # diff --git a/test/images/volumes-tester/nfs/run_nfs.sh b/test/images/volumes-tester/nfs/run_nfs.sh index 7b760572d154c..6577e6da6add7 100755 --- a/test/images/volumes-tester/nfs/run_nfs.sh +++ b/test/images/volumes-tester/nfs/run_nfs.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2015 The Kubernetes Authors. # diff --git a/test/images/volumes-tester/rbd/bootstrap.sh b/test/images/volumes-tester/rbd/bootstrap.sh index a147b4c838704..fb5e69c210b0a 100755 --- a/test/images/volumes-tester/rbd/bootstrap.sh +++ b/test/images/volumes-tester/rbd/bootstrap.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2015 The Kubernetes Authors. # diff --git a/test/images/volumes-tester/rbd/ceph.conf.sh b/test/images/volumes-tester/rbd/ceph.conf.sh index 6ccfffda57e44..6db6658d128d3 100755 --- a/test/images/volumes-tester/rbd/ceph.conf.sh +++ b/test/images/volumes-tester/rbd/ceph.conf.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2015 The Kubernetes Authors. # diff --git a/test/images/volumes-tester/rbd/create_block.sh b/test/images/volumes-tester/rbd/create_block.sh index 705957b1db192..7d29aff1ea3d5 100755 --- a/test/images/volumes-tester/rbd/create_block.sh +++ b/test/images/volumes-tester/rbd/create_block.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2015 The Kubernetes Authors. # diff --git a/test/images/volumes-tester/rbd/mds.sh b/test/images/volumes-tester/rbd/mds.sh index 744ccbf6b3b53..a5c896774469d 100755 --- a/test/images/volumes-tester/rbd/mds.sh +++ b/test/images/volumes-tester/rbd/mds.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 The Kubernetes Authors. # diff --git a/test/images/volumes-tester/rbd/mon.sh b/test/images/volumes-tester/rbd/mon.sh index e97baee5a8dd4..6865eef65041d 100755 --- a/test/images/volumes-tester/rbd/mon.sh +++ b/test/images/volumes-tester/rbd/mon.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2015 The Kubernetes Authors. # diff --git a/test/images/volumes-tester/rbd/osd.sh b/test/images/volumes-tester/rbd/osd.sh index fb18f9cb90b8f..9c58ef4c7c3a0 100755 --- a/test/images/volumes-tester/rbd/osd.sh +++ b/test/images/volumes-tester/rbd/osd.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2015 The Kubernetes Authors. # diff --git a/test/kubemark/cloud-provider-config.sh b/test/kubemark/cloud-provider-config.sh index abe029a0f934f..ad7029f2389d0 100755 --- a/test/kubemark/cloud-provider-config.sh +++ b/test/kubemark/cloud-provider-config.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 The Kubernetes Authors. # diff --git a/test/kubemark/common/util.sh b/test/kubemark/common/util.sh index d3c035776c2cf..2c7e7c119b834 100644 --- a/test/kubemark/common/util.sh +++ b/test/kubemark/common/util.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 The Kubernetes Authors. # diff --git a/test/kubemark/configure-kubectl.sh b/test/kubemark/configure-kubectl.sh index 3a55de67d37f2..eec173b2a5926 100755 --- a/test/kubemark/configure-kubectl.sh +++ b/test/kubemark/configure-kubectl.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2015 The Kubernetes Authors. # diff --git a/test/kubemark/gce/util.sh b/test/kubemark/gce/util.sh index 8e4cc9af0c1b2..398913779c8c1 100644 --- a/test/kubemark/gce/util.sh +++ b/test/kubemark/gce/util.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 The Kubernetes Authors. # diff --git a/test/kubemark/master-log-dump.sh b/test/kubemark/master-log-dump.sh index 35b04d6d3ff0f..beaf8ed732f42 100755 --- a/test/kubemark/master-log-dump.sh +++ b/test/kubemark/master-log-dump.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 The Kubernetes Authors. # diff --git a/test/kubemark/pre-existing/util.sh b/test/kubemark/pre-existing/util.sh index 107c921267de1..22be7913569fb 100644 --- a/test/kubemark/pre-existing/util.sh +++ b/test/kubemark/pre-existing/util.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 The Kubernetes Authors. # diff --git a/test/kubemark/resources/start-kubemark-master.sh b/test/kubemark/resources/start-kubemark-master.sh index f08b6ed870edd..a9465d6d5a208 100755 --- a/test/kubemark/resources/start-kubemark-master.sh +++ b/test/kubemark/resources/start-kubemark-master.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2015 The Kubernetes Authors. # diff --git a/test/kubemark/run-e2e-tests.sh b/test/kubemark/run-e2e-tests.sh index 17e1ef802a304..d110c34b87ae2 100755 --- a/test/kubemark/run-e2e-tests.sh +++ b/test/kubemark/run-e2e-tests.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2015 The Kubernetes Authors. # diff --git a/test/kubemark/skeleton/util.sh b/test/kubemark/skeleton/util.sh index 4998057c8327d..d646b3d9f2522 100644 --- a/test/kubemark/skeleton/util.sh +++ b/test/kubemark/skeleton/util.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2017 The Kubernetes Authors. # diff --git a/test/kubemark/start-kubemark.sh b/test/kubemark/start-kubemark.sh index e0d6763d44047..b8236bc133f89 100755 --- a/test/kubemark/start-kubemark.sh +++ b/test/kubemark/start-kubemark.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2015 The Kubernetes Authors. # diff --git a/test/kubemark/stop-kubemark.sh b/test/kubemark/stop-kubemark.sh index 4ffc3632fda66..4645cbcd03268 100755 --- a/test/kubemark/stop-kubemark.sh +++ b/test/kubemark/stop-kubemark.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2015 The Kubernetes Authors. # diff --git a/third_party/forked/shell2junit/sh2ju.sh b/third_party/forked/shell2junit/sh2ju.sh index 64da996d631e5..f0891455c822d 100755 --- a/third_party/forked/shell2junit/sh2ju.sh +++ b/third_party/forked/shell2junit/sh2ju.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ### Copyright 2010 Manuel Carrasco MoƱino. (manolo at apache.org) ### ### Licensed under the Apache License, Version 2.0.