summaryrefslogtreecommitdiffstats
path: root/qa/mds
diff options
context:
space:
mode:
authorAlan Somers <asomers@gmail.com>2017-07-21 00:26:42 +0200
committerAlan Somers <asomers@gmail.com>2017-07-27 21:24:26 +0200
commit3aae5ca6fda8b07ef875ae47c1b620aa3e2cdcd9 (patch)
tree27a9e5545e6b00fccdbe2fa374043141919e919d /qa/mds
parentMerge pull request #16452 from wjwithagen/wjw-warning-unused (diff)
downloadceph-3aae5ca6fda8b07ef875ae47c1b620aa3e2cdcd9.tar.xz
ceph-3aae5ca6fda8b07ef875ae47c1b620aa3e2cdcd9.zip
scripts: fix bash path in shebangs
/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>
Diffstat (limited to 'qa/mds')
-rwxr-xr-xqa/mds/test_anchortable.sh3
-rwxr-xr-xqa/mds/test_mdstable_failures.sh3
2 files changed, 4 insertions, 2 deletions
diff --git a/qa/mds/test_anchortable.sh b/qa/mds/test_anchortable.sh
index 56be0fb56a0..1bf2494de18 100755
--- a/qa/mds/test_anchortable.sh
+++ b/qa/mds/test_anchortable.sh
@@ -1,4 +1,5 @@
-#!/bin/bash -x
+#!/usr/bin/env bash
+set -x
mkdir links
for f in `seq 1 8`
diff --git a/qa/mds/test_mdstable_failures.sh b/qa/mds/test_mdstable_failures.sh
index b5f80791572..c959995cf25 100755
--- a/qa/mds/test_mdstable_failures.sh
+++ b/qa/mds/test_mdstable_failures.sh
@@ -1,4 +1,5 @@
-#!/bin/bash -x
+#!/usr/bin/env bash
+set -x
for f in `seq 1 8`
do