diff --git a/build/build-image/rsyncd.sh b/build/build-image/rsyncd.sh index ff155ded31..21546e59d4 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 8b2d5f2825..383765cae5 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 842cf0a5fb..8b18922434 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 dc91a62bfe..aaec30f52e 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 d4b69605c6..8ad0e3bbd3 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 8d82dfaaf0..af59f33d13 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 3fa5cad2d7..9432015b85 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 46dab711ff..a160fe927b 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 63d201c474..9e7876b46c 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 5304f92803..b0465fb6b3 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 dac2e49497..7572cedbc8 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 db9a7040ba..32152ff921 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 f2002c3fbc..eb118444d6 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 5d314371a8..b7bc78328d 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 4854f7e106..852c3673fd 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 d24f59a90e..0da86f28fd 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 5a0b917c57..c3a5c476f7 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 cefbc7c250..349b308ddb 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 c86f27bba2..37202e3cc6 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 686e95d68b..89e834f903 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 3025d06fda..6fcbe6f9a0 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 092fcd8ff6..745a29f08d 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 be18590755..6bdfd53094 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 202fb1b8d1..2d9de3a21e 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 041d977583..e45dbc71bc 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 04b8d824c6..8c862fbce3 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 320446a5b7..8b878b24c9 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 58783c5e3b..fe9b8e90c9 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 f11a56e9dc..a6c0e216da 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 584987bf7e..455084866a 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 10378428bc..efb1c878b1 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 a03a2ca3e3..94d6894ef0 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 6bfd1e7cc6..6379219cb7 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 1515d3e079..628ad58271 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 d189440599..cefbdb7fe9 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 339be90077..bad9917cd1 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 be28ef52ab..b03a7bba0b 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 ad12bc637f..79f3432616 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 14cc0a1e93..4d451858a9 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 ce4d995e95..140f52aef2 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 5d77bd0b9e..cac14eddb4 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 72ae001261..5d5fcf4339 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 dc52ec00ba..25ba4a09d7 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 472151af11..b2496eee12 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 cf3c827c52..77b41eb0c9 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 e2c2f9f44d..8e1e93854e 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 6de1e5b25c..390f8a21bc 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 e34c417086..7228a4bd4c 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 10efc4a166..5c60b50e93 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. # @@ -657,7 +657,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[@]}" @@ -804,7 +804,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:' @@ -1210,7 +1210,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 @@ -2093,7 +2093,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 @@ -3568,7 +3568,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 b68f1eecad..a4b4ef33b0 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 3ce6fa36e1..2e5c95ae26 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 b545e2574c..b69124df07 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 fadb83bdf3..86d82b0892 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 14090ed8a3..88efb996bf 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 3ba685e864..0dd3ba2226 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 13fe2a13b4..75fc4083ea 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 0b6efb0518..65a0d4945f 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 bbd4dd3d15..e83dc2cd6e 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 a1e4e92189..380e8d18d4 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 ad928e03ff..59a082c73c 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 c495586ad7..f2e53edc61 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 2a9f282bfd..ba4311f1c8 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 6fb808f7a1..59296e4624 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 90b8659c56..b35c429f8a 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 df54bd9220..a099b1dc69 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 132f0650b4..62c5fb34d0 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 b7e2b5723e..bfd63d8659 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 6d5ed939ff..d1f49ef533 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 102e253592..7d61e67e22 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 95a0ee80ca..431b1bf41b 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 2b95f6e27e..ef49dffcb6 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 f2cf01c0f0..bf8c5d4002 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 13d9c22441..43dbc560fc 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 c347c01a69..04b879910c 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 0e91c99414..536ec65b1e 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 83800c6eee..c3220e3bbd 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 b0016bc29b..09ff980a71 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 9399ba7bf3..877e43b2d2 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 0b5c11b1d5..75da7a411a 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 fc363fa57c..fef20e8e5a 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 65d9c72853..69b4e50c83 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 45a9a571e1..75ab1e9e92 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 88de8b7f6a..2756373011 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 e41256f9c9..afc2c79cc9 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 149bf11711..cb45b73dde 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 935d5dc0d7..337bec95ce 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 1aae5aae42..c6b3bd89af 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 02b979c2f9..3a5b69394c 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 79fc2f3bc6..d35145f95f 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 7427a9811c..817ffda360 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 9331343b1e..d583abc051 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 c4b43415e4..9c80a6bc01 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 03738b52e0..eeff02dbf4 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 a57f0fe4d7..a692687e2a 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 3e1132547a..6443cc4f9c 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 ef93c4e061..eec14769bb 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 7938c310a7..a7f46f99a7 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 3ec0e61d69..ff8797d18d 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 1b0b04430c..0829f18efd 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 223821d08c..edc0d314ab 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 7e112a4ac6..30681fbbdd 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 a845fa2a0b..ba9951bdac 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 69427f3ba3..493c0f8702 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 02fa8b294c..e245f76954 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 08b1edcbe3..0fa0396648 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 8fbb09282a..3466072849 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 babf558e80..87864a61a3 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 7177ac639e..e984d164a1 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 92ee2bcb6b..864df660bf 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 aa5870a296..ebd09aab17 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 8c60fb4352..7ef6a081f4 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 a5da12c6da..b31ae3aea9 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 0a7d4c376e..a2ba2d6fbc 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 9a51c351c6..1181912dcb 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 268a8078c2..387e255d0f 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 6e23c1cdea..b8ffbe4eb1 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 2b8d628ebc..5c1fbecc71 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 c90ad49322..930c466541 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 384e8f4e9d..30304922d8 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 3659ad3300..ea26ad63cc 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 9cc02a5a4a..d02a6fa395 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 c9152a4de1..d0d129078f 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 9c98ebf4d3..a586b48e0e 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 f5835c4253..ab43ba23d0 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 d4145c606a..98503f69f4 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 fdceb95716..a042ab62af 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 a3daa0fc43..922e64e5a2 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 8d7896fa5e..1e5fb1fd50 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 e38a0d92c0..767c2ab36b 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 601a76962c..25302228df 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 6aae5fb624..ee09df3ebd 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 cc00878dac..158d02affa 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 34f6693d7c..fc20f93768 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 04fcb9861c..43a4d57156 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 4678e5e3c9..9fae05895f 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 bb55d73880..87694c333e 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 f5835c4253..ab43ba23d0 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 c8b9df0632..c1b3c76858 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 b0b0cefc76..9dcc8f1024 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 f5835c4253..ab43ba23d0 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 3697707b72..1423a1afd9 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 9cc02a5a4a..d02a6fa395 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 04113c09b6..dc448849c6 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 6ddb247883..3e27859ae7 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 2069a3a494..5ea0ab1dc0 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 97f3da8ce3..a8a11bfd7b 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 422a149b1b..9e8715287c 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 4389f5816a..18ff7c6310 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 c0f83e59e7..a1caae4ad9 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 6d6d27719d..f83e53c18e 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 b7d005519d..44c9a4f335 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 86ade76047..c3d7075b4c 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 5d9b777b8f..0c092a4a99 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 e119388940..dd9a4e656c 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 213630dd2b..f7981405e5 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 6a96ad9740..5cdeecf9df 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 5e564b45bc..0cf5cb48c3 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 2fbc61faca..9421568690 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 2720287745..a5bded46cd 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 7b760572d1..6577e6da6a 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 a147b4c838..fb5e69c210 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 6ccfffda57..6db6658d12 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 705957b1db..7d29aff1ea 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 744ccbf6b3..a5c8967744 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 e97baee5a8..6865eef650 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 fb18f9cb90..9c58ef4c7c 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 abe029a0f9..ad7029f238 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 d3c035776c..2c7e7c119b 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 3a55de67d3..eec173b2a5 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 8e4cc9af0c..398913779c 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 35b04d6d3f..beaf8ed732 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 107c921267..22be791356 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 f08b6ed870..a9465d6d5a 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 17e1ef802a..d110c34b87 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 4998057c83..d646b3d9f2 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 e0d6763d44..b8236bc133 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 4ffc3632fd..4645cbcd03 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 64da996d63..f0891455c8 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.