From 6be7c335a215cbad363aea46762571bbe79df22d Mon Sep 17 00:00:00 2001 From: Vincent Demeester Date: Tue, 11 Dec 2018 18:26:16 +0100 Subject: [PATCH] Use `/usr/bin/env bash` instead of `/bin/bash` (#18) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Some systems may not have /bin/bash (NixOS for example)… Using /usr/bin/env bash has the benefit of looking for whatever the default version of the program is in your current environment Signed-off-by: Vincent Demeester --- hack/boilerplate/add-boilerplate.sh | 2 +- hack/boilerplate/boilerplate.sh.txt | 2 +- hack/update-codegen.sh | 2 +- hack/update-deps.sh | 2 +- hack/verify-codegen.sh | 2 +- test/presubmit-tests.sh | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/hack/boilerplate/add-boilerplate.sh b/hack/boilerplate/add-boilerplate.sh index 6ba526ac..f642f2f7 100755 --- a/hack/boilerplate/add-boilerplate.sh +++ b/hack/boilerplate/add-boilerplate.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2018 The Knative Authors # diff --git a/hack/boilerplate/boilerplate.sh.txt b/hack/boilerplate/boilerplate.sh.txt index 85b47611..e05a3636 100644 --- a/hack/boilerplate/boilerplate.sh.txt +++ b/hack/boilerplate/boilerplate.sh.txt @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2018 The Knative Authors # diff --git a/hack/update-codegen.sh b/hack/update-codegen.sh index 60960615..165b2b80 100755 --- a/hack/update-codegen.sh +++ b/hack/update-codegen.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2018 The Knative Authors # diff --git a/hack/update-deps.sh b/hack/update-deps.sh index 06bcf11e..856520a8 100755 --- a/hack/update-deps.sh +++ b/hack/update-deps.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2018 The Knative Authors # diff --git a/hack/verify-codegen.sh b/hack/verify-codegen.sh index 6853769d..5e48a4e6 100755 --- a/hack/verify-codegen.sh +++ b/hack/verify-codegen.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2018 The Knative Authors # diff --git a/test/presubmit-tests.sh b/test/presubmit-tests.sh index 7d8a3238..296bb413 100755 --- a/test/presubmit-tests.sh +++ b/test/presubmit-tests.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2018 The Knative Authors #