1
0
mirror of https://github.com/containous/traefik.git synced 2024-12-22 13:34:03 +03:00

Update script to use /usr/bin/env bash…

… instead of /bin/bash, to work better on more platforms.

Signed-off-by: Vincent Demeester <vincent@sbr.pm>
This commit is contained in:
Vincent Demeester 2017-04-21 11:23:45 +02:00 committed by Emile Vauge
parent 1b85dd0455
commit 65f81990a7
No known key found for this signature in database
GPG Key ID: D808B4C167352E59
17 changed files with 18 additions and 18 deletions

View File

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
if [ -z "${VALIDATE_UPSTREAM:-}" ]; then if [ -z "${VALIDATE_UPSTREAM:-}" ]; then
# this is kind of an expensive check, so let's not do this twice if we # this is kind of an expensive check, so let's not do this twice if we

View File

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
set -e set -e
if ! test -e autogen/gen.go; then if ! test -e autogen/gen.go; then

View File

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
set -e set -e
if ! test -e autogen/gen.go; then if ! test -e autogen/gen.go; then

View File

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
set -e set -e
if [ -n "$TRAVIS_COMMIT" ]; then if [ -n "$TRAVIS_COMMIT" ]; then

View File

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
set -e set -e
if [ -n "$TRAVIS_TAG" ] && [ "$DOCKER_VERSION" = "1.10.3" ]; then if [ -n "$TRAVIS_TAG" ] && [ "$DOCKER_VERSION" = "1.10.3" ]; then

View File

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

View File

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

View File

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

View File

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
set -e set -e
if ! test -e autogen/gen.go; then if ! test -e autogen/gen.go; then

View File

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
set -o errexit set -o errexit
set -o pipefail set -o pipefail
set -o nounset set -o nounset
@ -6,7 +6,7 @@ set -o nounset
SCRIPTDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"; export SCRIPTDIR SCRIPTDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"; export SCRIPTDIR
source "${SCRIPTDIR}/.validate" source "${SCRIPTDIR}/.validate"
# Iterate over all directories containing vendor folders. # Iterate over all directories containing templates folders.
IFS=$'\n' files=( $(validate_diff --diff-filter=ACMR --name-only -- templates || true) ) IFS=$'\n' files=( $(validate_diff --diff-filter=ACMR --name-only -- templates || true) )
if [[ ${#files[@]} -gt 0 ]]; then if [[ ${#files[@]} -gt 0 ]]; then

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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