From be9b00f9927f59330e01954170c49bca967b00c5 Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Wed, 5 Feb 2020 04:45:18 +0100 Subject: [PATCH] SCRIPTS: use /usr/bin/env bash instead of /bin/bash for scripts Given that some OSes have bash in /usr/local/bin and in order not to give too easy an excuse to Olivier for not backporting fixes, let's make a few scripts rely on /usr/bin/env bash instead of /bin/bash :-) --- scripts/announce-release | 2 +- scripts/backport | 2 +- scripts/create-release | 2 +- scripts/git-show-backports | 2 +- scripts/publish-release | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/announce-release b/scripts/announce-release index 972d6ea937..3e0d1e3564 100755 --- a/scripts/announce-release +++ b/scripts/announce-release @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # prepares a template e-mail and HTML file to announce a new release # Copyright (c) 2006-2016 Willy Tarreau # diff --git a/scripts/backport b/scripts/backport index c87665136e..28a06038e6 100755 --- a/scripts/backport +++ b/scripts/backport @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash USAGE="Usage: ${0##*/} [...]" START="$PWD" diff --git a/scripts/create-release b/scripts/create-release index 8a8e05d69f..bc87e82c3a 100755 --- a/scripts/create-release +++ b/scripts/create-release @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # creates a new haproxy release at the current commit # Copyright (c) 2006-2016 Willy Tarreau # diff --git a/scripts/git-show-backports b/scripts/git-show-backports index 0fad6c1e5f..4c6ccee76f 100755 --- a/scripts/git-show-backports +++ b/scripts/git-show-backports @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Compares multiple branches against a reference and shows which ones contain # each commit, and the level of backports since the origin or its own ancestors. diff --git a/scripts/publish-release b/scripts/publish-release index 6a615a6f1a..5a9a5cead0 100755 --- a/scripts/publish-release +++ b/scripts/publish-release @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # puts the public files online after a release # Copyright (c) 2006-2016 Willy Tarreau #