diff --git a/contrib/completion/bash/docker b/contrib/completion/bash/docker index b60a4c9fa5..644f811ec4 100644 --- a/contrib/completion/bash/docker +++ b/contrib/completion/bash/docker @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # bash completion file for core docker commands # diff --git a/docs/reference/builder.md b/docs/reference/builder.md index 8dfc4d1fb9..8c39b512c8 100644 --- a/docs/reference/builder.md +++ b/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 diff --git a/man/generate.sh b/man/generate.sh index c97edb440d..905b2d7baf 100755 --- a/man/generate.sh +++ b/man/generate.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Generate man pages for docker/docker # diff --git a/man/md2man-all.sh b/man/md2man-all.sh index 97c65c93bc..46c7b8f08e 100755 --- a/man/md2man-all.sh +++ b/man/md2man-all.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -e # get into this script's directory