scripts: fix bash path in shebangs (part 2)

/bin/bash is a Linuxism.  Other operating systems install bash to
different paths.  Use /usr/bin/env in shebangs to find bash.

Signed-off-by: Alan Somers <asomers@gmail.com>
This commit is contained in:
Alan Somers
2017-09-25 17:20:40 -06:00
parent 37c8748054
commit d1cbb90daa
5 changed files with 6 additions and 5 deletions

View File

@@ -1,4 +1,4 @@
#!/bin/bash -
#!/usr/bin/env bash
#
# File: git-archive-all.sh
#

View File

@@ -1,4 +1,4 @@
#! /bin/bash
#! /usr/bin/env bash
#
# Copyright (C) 2017 Red Hat <contact@redhat.com>
#

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
source $CEPH_ROOT/qa/standalone/ceph-helpers.sh

View File

@@ -1,4 +1,4 @@
#!/bin/bash -ex
#!/usr/bin/env bash
#
# Copyright (C) 2014, 2015 Red Hat <contact@redhat.com>
# Copyright (C) 2013 Cloudwatt <libre.licensing@cloudwatt.com>
@@ -15,6 +15,7 @@
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Library Public License for more details.
#
set -ex
source $(dirname $0)/detect-build-env-vars.sh
test `uname` = FreeBSD

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
source $CEPH_ROOT/qa/standalone/ceph-helpers.sh