Browse Source

Convert script shebangs from "#!/bin/bash" to "#!/usr/bin/env bash"

This is especially important for distributions like NixOS where `/bin/bash` doesn't exist, or for MacOS users who've installed a newer version of Bash than the one that comes with their OS.

Signed-off-by: Andrew "Tianon" Page <admwiggin@gmail.com>
Tianon Gravi 8 năm trước cách đây
mục cha
commit
52379fa76d
88 tập tin đã thay đổi với 88 bổ sung88 xóa
  1. 1 1
      contrib/builder/deb/aarch64/build.sh
  2. 1 1
      contrib/builder/deb/aarch64/generate.sh
  3. 1 1
      contrib/builder/deb/amd64/build.sh
  4. 1 1
      contrib/builder/deb/amd64/generate.sh
  5. 1 1
      contrib/builder/deb/armhf/generate.sh
  6. 1 1
      contrib/builder/deb/ppc64le/build.sh
  7. 1 1
      contrib/builder/deb/ppc64le/generate.sh
  8. 1 1
      contrib/builder/deb/s390x/build.sh
  9. 1 1
      contrib/builder/deb/s390x/generate.sh
  10. 1 1
      contrib/builder/rpm/amd64/build.sh
  11. 1 1
      contrib/builder/rpm/amd64/generate.sh
  12. 1 1
      contrib/builder/rpm/armhf/build.sh
  13. 1 1
      contrib/builder/rpm/armhf/generate.sh
  14. 1 1
      contrib/builder/rpm/ppc64le/build.sh
  15. 1 1
      contrib/builder/rpm/ppc64le/generate.sh
  16. 1 1
      contrib/completion/bash/docker
  17. 1 1
      contrib/docker-machine-install-bundle.sh
  18. 1 1
      contrib/download-frozen-image-v1.sh
  19. 1 1
      contrib/download-frozen-image-v2.sh
  20. 1 1
      contrib/gitdm/generate_aliases.sh
  21. 1 1
      contrib/nuke-graph-directory.sh
  22. 1 1
      contrib/reprepro/suites.sh
  23. 1 1
      docs/reference/builder.md
  24. 1 1
      hack/dind
  25. 1 1
      hack/generate-authors.sh
  26. 1 1
      hack/make/.binary
  27. 1 1
      hack/make/.binary-setup
  28. 1 1
      hack/make/.detect-daemon-osarch
  29. 1 1
      hack/make/.ensure-emptyfs
  30. 1 1
      hack/make/.go-autogen
  31. 1 1
      hack/make/.integration-daemon-setup
  32. 1 1
      hack/make/.integration-daemon-start
  33. 1 1
      hack/make/.integration-daemon-stop
  34. 1 1
      hack/make/.integration-test-helpers
  35. 1 1
      hack/make/binary
  36. 1 1
      hack/make/binary-client
  37. 1 1
      hack/make/binary-daemon
  38. 1 1
      hack/make/build-deb
  39. 1 1
      hack/make/build-integration-test-binary
  40. 1 1
      hack/make/build-rpm
  41. 1 1
      hack/make/clean-apt-repo
  42. 1 1
      hack/make/clean-yum-repo
  43. 1 1
      hack/make/cover
  44. 1 1
      hack/make/cross
  45. 1 1
      hack/make/dynbinary
  46. 1 1
      hack/make/dynbinary-client
  47. 1 1
      hack/make/dynbinary-daemon
  48. 1 1
      hack/make/generate-index-listing
  49. 1 1
      hack/make/install-binary
  50. 1 1
      hack/make/install-binary-client
  51. 1 1
      hack/make/install-binary-daemon
  52. 1 1
      hack/make/install-script
  53. 1 1
      hack/make/release-deb
  54. 1 1
      hack/make/release-rpm
  55. 1 1
      hack/make/run
  56. 1 1
      hack/make/sign-repos
  57. 1 1
      hack/make/test-deb-install
  58. 1 1
      hack/make/test-docker-py
  59. 1 1
      hack/make/test-install-script
  60. 1 1
      hack/make/test-integration-cli
  61. 1 1
      hack/make/test-integration-shell
  62. 1 1
      hack/make/test-old-apt-repo
  63. 1 1
      hack/make/test-unit
  64. 1 1
      hack/make/tgz
  65. 1 1
      hack/make/ubuntu
  66. 1 1
      hack/make/update-apt-repo
  67. 1 1
      hack/make/win
  68. 1 1
      hack/validate/.validate
  69. 1 1
      hack/validate/all
  70. 1 1
      hack/validate/changelog-date-descending
  71. 1 1
      hack/validate/changelog-well-formed
  72. 1 1
      hack/validate/compose-bindata
  73. 1 1
      hack/validate/dco
  74. 1 1
      hack/validate/default
  75. 1 1
      hack/validate/default-seccomp
  76. 1 1
      hack/validate/gofmt
  77. 1 1
      hack/validate/lint
  78. 1 1
      hack/validate/pkg-imports
  79. 1 1
      hack/validate/swagger
  80. 1 1
      hack/validate/swagger-gen
  81. 1 1
      hack/validate/test-imports
  82. 1 1
      hack/validate/toml
  83. 1 1
      hack/validate/vendor
  84. 1 1
      hack/validate/vet
  85. 1 1
      hack/vendor.sh
  86. 1 1
      integration-cli/fixtures/auth/docker-credential-shell-test
  87. 1 1
      man/generate.sh
  88. 1 1
      man/md2man-all.sh

+ 1 - 1
contrib/builder/deb/aarch64/build.sh

@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 set -e
 
 cd "$(dirname "$(readlink -f "$BASH_SOURCE")")"

+ 1 - 1
contrib/builder/deb/aarch64/generate.sh

@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 set -e
 
 # This file is used to auto-generate Dockerfiles for making debs via 'make deb'

+ 1 - 1
contrib/builder/deb/amd64/build.sh

@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 set -e
 
 cd "$(dirname "$(readlink -f "$BASH_SOURCE")")"

+ 1 - 1
contrib/builder/deb/amd64/generate.sh

@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 set -e
 
 # usage: ./generate.sh [versions]

+ 1 - 1
contrib/builder/deb/armhf/generate.sh

@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 set -e
 
 # usage: ./generate.sh [versions]

+ 1 - 1
contrib/builder/deb/ppc64le/build.sh

@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 set -e 
 
 cd "$(dirname "$(readlink -f "$BASH_SOURCE")")"

+ 1 - 1
contrib/builder/deb/ppc64le/generate.sh

@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 set -e
 
 # This file is used to auto-generate Dockerfiles for making debs via 'make deb'

+ 1 - 1
contrib/builder/deb/s390x/build.sh

@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 set -e
 
 cd "$(dirname "$(readlink -f "$BASH_SOURCE")")"

+ 1 - 1
contrib/builder/deb/s390x/generate.sh

@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 set -e
 
 # This file is used to auto-generate Dockerfiles for making debs via 'make deb'

+ 1 - 1
contrib/builder/rpm/amd64/build.sh

@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 set -e
 
 cd "$(dirname "$(readlink -f "$BASH_SOURCE")")"

+ 1 - 1
contrib/builder/rpm/amd64/generate.sh

@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 set -e
 
 # usage: ./generate.sh [versions]

+ 1 - 1
contrib/builder/rpm/armhf/build.sh

@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 set -e
 
 cd "$(dirname "$(readlink -f "$BASH_SOURCE")")"

+ 1 - 1
contrib/builder/rpm/armhf/generate.sh

@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 # vim: set ts=4 sw=4 noet :
 
 set -e

+ 1 - 1
contrib/builder/rpm/ppc64le/build.sh

@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 set -e
 
 cd "$(dirname "$(readlink -f "$BASH_SOURCE")")"

+ 1 - 1
contrib/builder/rpm/ppc64le/generate.sh

@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 set -e
 
 # usage: ./generate.sh [versions]

+ 1 - 1
contrib/completion/bash/docker

@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # bash completion file for core docker commands
 #

+ 1 - 1
contrib/docker-machine-install-bundle.sh

@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # This script installs the bundle to Docker Machine instances, for the purpose
 # of testing the latest Docker with Swarm mode enabled.

+ 1 - 1
contrib/download-frozen-image-v1.sh

@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 set -e
 
 # hello-world                      latest              ef872312fe1b        3 months ago        910 B

+ 1 - 1
contrib/download-frozen-image-v2.sh

@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 set -eo pipefail
 
 # hello-world                      latest              ef872312fe1b        3 months ago        910 B

+ 1 - 1
contrib/gitdm/generate_aliases.sh

@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 #
 # This script generates a gitdm compatible email aliases file from a git

+ 1 - 1
contrib/nuke-graph-directory.sh

@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 set -e
 
 dir="$1"

+ 1 - 1
contrib/reprepro/suites.sh

@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 set -e
 
 cd "$(dirname "$BASH_SOURCE")/../.."

+ 1 - 1
docs/reference/builder.md

@@ -1029,7 +1029,7 @@ the final executable receives the Unix signals by using `exec` and `gosu`
 commands:
 
 ```bash
-#!/bin/bash
+#!/usr/bin/env bash
 set -e
 
 if [ "$1" = 'postgres' ]; then

+ 1 - 1
hack/dind

@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 set -e
 
 # DinD: a wrapper script which allows docker to be run inside a docker container.

+ 1 - 1
hack/generate-authors.sh

@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 set -e
 
 cd "$(dirname "$(readlink -f "$BASH_SOURCE")")/.."

+ 1 - 1
hack/make/.binary

@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 set -e
 
 BINARY_NAME="$BINARY_SHORT_NAME-$VERSION"

+ 1 - 1
hack/make/.binary-setup

@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 DOCKER_CLIENT_BINARY_NAME='docker'
 DOCKER_DAEMON_BINARY_NAME='dockerd'

+ 1 - 1
hack/make/.detect-daemon-osarch

@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 set -e
 
 docker-version-osarch() {

+ 1 - 1
hack/make/.ensure-emptyfs

@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 set -e
 
 if ! docker inspect -t image emptyfs &> /dev/null; then

+ 1 - 1
hack/make/.go-autogen

@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 rm -rf autogen
 

+ 1 - 1
hack/make/.integration-daemon-setup

@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 set -e
 
 bundle .detect-daemon-osarch

+ 1 - 1
hack/make/.integration-daemon-start

@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 # see test-integration-cli for example usage of this script
 

+ 1 - 1
hack/make/.integration-daemon-stop

@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 if [ ! "$(go env GOOS)" = 'windows' ]; then
 	trap - EXIT # reset EXIT trap applied in .integration-daemon-start

+ 1 - 1
hack/make/.integration-test-helpers

@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 : ${TEST_REPEAT:=0}
 

+ 1 - 1
hack/make/binary

@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 set -e
 rm -rf "$DEST"
 

+ 1 - 1
hack/make/binary-client

@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 set -e
 
 [ -z "$KEEPDEST" ] && \

+ 1 - 1
hack/make/binary-daemon

@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 set -e
 
 [ -z "$KEEPDEST" ] && \

+ 1 - 1
hack/make/build-deb

@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 set -e
 
 # subshell so that we can export PATH and TZ without breaking other things

+ 1 - 1
hack/make/build-integration-test-binary

@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 set -e
 
 rm -rf "$DEST"

+ 1 - 1
hack/make/build-rpm

@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 set -e
 
 # subshell so that we can export PATH and TZ without breaking other things

+ 1 - 1
hack/make/clean-apt-repo

@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 set -e
 
 # This script cleans the experimental pool for the apt repo.

+ 1 - 1
hack/make/clean-yum-repo

@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 set -e
 
 # This script cleans the experimental pool for the yum repo.

+ 1 - 1
hack/make/cover

@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 set -e
 
 bundle_cover() {

+ 1 - 1
hack/make/cross

@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 set -e
 
 # explicit list of os/arch combos that support being a daemon

+ 1 - 1
hack/make/dynbinary

@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 set -e
 
 # This script exists as backwards compatibility for CI

+ 1 - 1
hack/make/dynbinary-client

@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 set -e
 
 (

+ 1 - 1
hack/make/dynbinary-daemon

@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 set -e
 
 (

+ 1 - 1
hack/make/generate-index-listing

@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 set -e
 
 # This script generates index files for the directory structure

+ 1 - 1
hack/make/install-binary

@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 set -e
 rm -rf "$DEST"

+ 1 - 1
hack/make/install-binary-client

@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 set -e
 rm -rf "$DEST"

+ 1 - 1
hack/make/install-binary-daemon

@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 set -e
 rm -rf "$DEST"

+ 1 - 1
hack/make/install-script

@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 set -e
 
 # This script modifies the install.sh script for domains and keys other than

+ 1 - 1
hack/make/release-deb

@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 set -e
 
 # This script creates the apt repos for the .deb files generated by hack/make/build-deb

+ 1 - 1
hack/make/release-rpm

@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 set -e
 
 # This script creates the yum repos for the .rpm files generated by hack/make/build-rpm

+ 1 - 1
hack/make/run

@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 set -e
 rm -rf "$DEST"

+ 1 - 1
hack/make/sign-repos

@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 # This script signs the deliverables from release-deb and release-rpm
 # with a designated GPG key.

+ 1 - 1
hack/make/test-deb-install

@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 # This script is used for testing install.sh and that it works for
 # each of component of our apt and yum repos
 set -e

+ 1 - 1
hack/make/test-docker-py

@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 set -e
 
 source hack/make/.integration-test-helpers

+ 1 - 1
hack/make/test-install-script

@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 # This script is used for testing install.sh and that it works for
 # each of component of our apt and yum repos
 set -e

+ 1 - 1
hack/make/test-integration-cli

@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 set -e
 
 source hack/make/.integration-test-helpers

+ 1 - 1
hack/make/test-integration-shell

@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 bundle .integration-daemon-start
 bundle .integration-daemon-setup

+ 1 - 1
hack/make/test-old-apt-repo

@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 set -e
 
 versions=( 1.3.3 1.4.1 1.5.0 1.6.2 )

+ 1 - 1
hack/make/test-unit

@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 set -e
 
 # Run Docker's test suite, including sub-packages, and store their output as a bundle

+ 1 - 1
hack/make/tgz

@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 CROSS="$DEST/../cross"
 

+ 1 - 1
hack/make/ubuntu

@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 PKGVERSION="${VERSION//-/'~'}"
 # if we have a "-dev" suffix or have change in Git, let's make this package version more complex so it works better

+ 1 - 1
hack/make/update-apt-repo

@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 set -e
 
 # This script updates the apt repo in $DOCKER_RELEASE_DIR/apt/repo.

+ 1 - 1
hack/make/win

@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 set -e
 
 # explicit list of os/arch combos that support being a daemon

+ 1 - 1
hack/validate/.validate

@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 set -e -o pipefail
 

+ 1 - 1
hack/validate/all

@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Run all validation
 

+ 1 - 1
hack/validate/changelog-date-descending

@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 changelogFile=${1:-CHANGELOG.md}
 

+ 1 - 1
hack/validate/changelog-well-formed

@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 changelogFile=${1:-CHANGELOG.md}
 

+ 1 - 1
hack/validate/compose-bindata

@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 export SCRIPTDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
 source "${SCRIPTDIR}/.validate"

+ 1 - 1
hack/validate/dco

@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 export SCRIPTDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
 source "${SCRIPTDIR}/.validate"

+ 1 - 1
hack/validate/default

@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Run default validation, exclude vendor because it's slow
 

+ 1 - 1
hack/validate/default-seccomp

@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 export SCRIPTDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
 source "${SCRIPTDIR}/.validate"

+ 1 - 1
hack/validate/gofmt

@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 export SCRIPTDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
 source "${SCRIPTDIR}/.validate"

+ 1 - 1
hack/validate/lint

@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 export SCRIPTDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
 source "${SCRIPTDIR}/.validate"

+ 1 - 1
hack/validate/pkg-imports

@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 set -e
 
 export SCRIPTDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"

+ 1 - 1
hack/validate/swagger

@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 set -e
 export SCRIPTDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
 source "${SCRIPTDIR}/.validate"

+ 1 - 1
hack/validate/swagger-gen

@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 export SCRIPTDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
 source "${SCRIPTDIR}/.validate"

+ 1 - 1
hack/validate/test-imports

@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 # Make sure we're not using gos' Testing package any more in integration-cli
 
 export SCRIPTDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"

+ 1 - 1
hack/validate/toml

@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 export SCRIPTDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
 source "${SCRIPTDIR}/.validate"

+ 1 - 1
hack/validate/vendor

@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 export SCRIPTDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
 source "${SCRIPTDIR}/.validate"

+ 1 - 1
hack/validate/vet

@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 export SCRIPTDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
 source "${SCRIPTDIR}/.validate"

+ 1 - 1
hack/vendor.sh

@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 # This file is just wrapper around vndr (github.com/LK4D4/vndr) tool.
 # For updating dependencies you should change `vendor.conf` file in root of the

+ 1 - 1
integration-cli/fixtures/auth/docker-credential-shell-test

@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 set -e
 

+ 1 - 1
man/generate.sh

@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Generate man pages for docker/docker
 #

+ 1 - 1
man/md2man-all.sh

@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 set -e
 
 # get into this script's directory