Skip to content

Commit

Permalink
scripts: fix bash path in shebangs (part 2)
Browse files Browse the repository at this point in the history
/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 <[email protected]>
  • Loading branch information
asomers committed Sep 25, 2017
1 parent 37c8748 commit d1cbb90
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion bin/git-archive-all.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash -
#!/usr/bin/env bash
#
# File: git-archive-all.sh
#
Expand Down
2 changes: 1 addition & 1 deletion qa/standalone/scrub/osd-recovery-scrub.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#! /bin/bash
#! /usr/bin/env bash
#
# Copyright (C) 2017 Red Hat <[email protected]>
#
Expand Down
2 changes: 1 addition & 1 deletion src/test/osd/safe-to-destroy.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

source $CEPH_ROOT/qa/standalone/ceph-helpers.sh

Expand Down
3 changes: 2 additions & 1 deletion src/test/rbd-ggate.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash -ex
#!/usr/bin/env bash
#
# Copyright (C) 2014, 2015 Red Hat <[email protected]>
# Copyright (C) 2013 Cloudwatt <[email protected]>
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/test/smoke.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

source $CEPH_ROOT/qa/standalone/ceph-helpers.sh

Expand Down

0 comments on commit d1cbb90

Please sign in to comment.