]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
scripts: fix bash path in shebangs 16494/head
authorAlan Somers <asomers@gmail.com>
Thu, 20 Jul 2017 22:26:42 +0000 (16:26 -0600)
committerAlan Somers <asomers@gmail.com>
Thu, 27 Jul 2017 19:24:26 +0000 (13:24 -0600)
/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>
205 files changed:
README.FreeBSD
examples/rbd-replay/create-image
examples/rbd-replay/replay
examples/rbd-replay/run-rbd-replay-prep
examples/rbd-replay/trace
install-deps.sh
make-debs.sh
mirroring/mirror-ceph.sh
mirroring/test-mirrors.sh
qa/client/30_subdir_mount.sh
qa/client/gen-1774.sh
qa/loopall.sh
qa/machine_types/schedule_rados_ovh.sh
qa/machine_types/schedule_subset.sh
qa/mds/test_anchortable.sh
qa/mds/test_mdstable_failures.sh
qa/nightlies/cron_wrapper
qa/qa_scripts/openstack/ceph_install_w_ansible/ceph_install.sh
qa/qa_scripts/openstack/ceph_install_w_ansible/execs/cdn_setup.sh
qa/qa_scripts/openstack/ceph_install_w_ansible/execs/ceph_ansible.sh
qa/qa_scripts/openstack/ceph_install_w_ansible/execs/edit_ansible_hosts.sh
qa/qa_scripts/openstack/ceph_install_w_ansible/execs/edit_groupvars_osds.sh
qa/qa_scripts/openstack/ceph_install_w_ansible/multi_action.sh
qa/qa_scripts/openstack/ceph_install_w_ansible/repolocs.sh
qa/qa_scripts/openstack/ceph_install_w_ansible/staller.sh
qa/qa_scripts/openstack/ceph_install_w_ansible/talknice.sh
qa/qa_scripts/openstack/execs/ceph-pool-create.sh
qa/qa_scripts/openstack/execs/ceph_cluster.sh
qa/qa_scripts/openstack/execs/libvirt-secret.sh
qa/qa_scripts/openstack/execs/openstack-preinstall.sh
qa/qa_scripts/openstack/execs/run_openstack.sh
qa/qa_scripts/openstack/execs/start_openstack.sh
qa/rbd/common.sh
qa/rbd/rbd.sh
qa/run_xfstests-obsolete.sh
qa/run_xfstests.sh
qa/run_xfstests_krbd.sh
qa/run_xfstests_qemu.sh
qa/runallonce.sh
qa/runoncfuse.sh
qa/runonkclient.sh
qa/setup-chroot.sh
qa/standalone/ceph-helpers.sh
qa/standalone/crush/crush-choose-args.sh
qa/standalone/crush/crush-classes.sh
qa/standalone/erasure-code/test-erasure-code-plugins.sh
qa/standalone/erasure-code/test-erasure-code.sh
qa/standalone/erasure-code/test-erasure-eio.sh
qa/standalone/misc/rados-striper.sh
qa/standalone/misc/test-ceph-helpers.sh
qa/standalone/mon/misc.sh
qa/standalone/mon/mkfs.sh
qa/standalone/mon/mon-bind.sh
qa/standalone/mon/mon-created-time.sh
qa/standalone/mon/mon-handle-forward.sh
qa/standalone/mon/mon-ping.sh
qa/standalone/mon/mon-scrub.sh
qa/standalone/mon/osd-crush.sh
qa/standalone/mon/osd-erasure-code-profile.sh
qa/standalone/mon/osd-pool-create.sh
qa/standalone/mon/test_pool_quota.sh
qa/standalone/osd/osd-bench.sh
qa/standalone/osd/osd-config.sh
qa/standalone/osd/osd-copy-from.sh
qa/standalone/osd/osd-dup.sh
qa/standalone/osd/osd-fast-mark-down.sh
qa/standalone/osd/osd-markdown.sh
qa/standalone/osd/osd-reactivate.sh
qa/standalone/osd/osd-reuse-id.sh
qa/standalone/scrub/osd-scrub-repair.sh
qa/standalone/scrub/osd-scrub-snaps.sh
qa/tasks/userdata_setup.yaml
qa/tasks/userdata_teardown.yaml
qa/workunits/ceph-disk/ceph-disk.sh
qa/workunits/ceph-helpers-root.sh
qa/workunits/cephtool/test.sh
qa/workunits/cephtool/test_daemon.sh
qa/workunits/erasure-code/bench.sh
qa/workunits/erasure-code/encode-decode-non-regression.sh
qa/workunits/fs/misc/dirfrag.sh
qa/workunits/fs/misc/layout_vxattrs.sh
qa/workunits/fs/misc/mkpool_layout_vxattrs.sh
qa/workunits/fs/misc/trivial_sync.sh
qa/workunits/fs/norstats/kernel_untar_tar.sh
qa/workunits/fs/quota/quota.sh
qa/workunits/fs/snaps/snaptest-1.sh
qa/workunits/fs/snaps/snaptest-2.sh
qa/workunits/hadoop/repl.sh
qa/workunits/hadoop/terasort.sh
qa/workunits/hadoop/wordcount.sh
qa/workunits/kernel_untar_build.sh
qa/workunits/mon/auth_caps.sh
qa/workunits/mon/caps.sh
qa/workunits/mon/crush_ops.sh
qa/workunits/mon/pool_ops.sh
qa/workunits/mon/rbd_snaps_ops.sh
qa/workunits/post-file.sh
qa/workunits/rados/test.sh
qa/workunits/rados/test_alloc_hint.sh
qa/workunits/rados/test_cache_pool.sh
qa/workunits/rados/test_envlibrados_for_rocksdb.sh
qa/workunits/rados/test_health_warnings.sh
qa/workunits/rados/test_pool_access.sh
qa/workunits/rados/test_rados_timeouts.sh
qa/workunits/rados/test_rados_tool.sh
qa/workunits/rbd/concurrent.sh
qa/workunits/rbd/diff.sh
qa/workunits/rbd/diff_continuous.sh
qa/workunits/rbd/huge-tickets.sh
qa/workunits/rbd/image_read.sh
qa/workunits/rbd/journal.sh
qa/workunits/rbd/kernel.sh
qa/workunits/rbd/krbd_data_pool.sh
qa/workunits/rbd/krbd_exclusive_option.sh
qa/workunits/rbd/krbd_fallocate.sh
qa/workunits/rbd/krbd_stable_pages_required.sh
qa/workunits/rbd/map-unmap.sh
qa/workunits/rbd/merge_diff.sh
qa/workunits/rbd/permissions.sh
qa/workunits/rbd/qemu_dynamic_features.sh
qa/workunits/rbd/qemu_rebuild_object_map.sh
qa/workunits/rbd/rbd-nbd.sh
qa/workunits/rbd/read-flags.sh
qa/workunits/rbd/run_devstack_tempest.sh
qa/workunits/rbd/test_admin_socket.sh
qa/workunits/rbd/test_lock_fence.sh
qa/workunits/rename/all.sh
qa/workunits/rgw/run-s3tests.sh
qa/workunits/suites/blogbench.sh
qa/workunits/suites/bonnie.sh
qa/workunits/suites/cephfs_journal_tool_smoke.sh
qa/workunits/suites/dbench-short.sh
qa/workunits/suites/dbench.sh
qa/workunits/suites/ffsb.sh
qa/workunits/suites/fio.sh
qa/workunits/suites/fsstress.sh
qa/workunits/suites/iogen.sh
qa/workunits/suites/iozone-sync.sh
qa/workunits/suites/iozone.sh
qa/workunits/suites/pjd.sh
qa/workunits/suites/wac.sh
run-make-check.sh
src/ceph-detect-init/run-tox.sh
src/ceph-disk/run-tox.sh
src/ceph-disk/tests/ceph-disk.sh
src/ceph-post-file.in
src/dmclock/benchmark/data_gen.sh
src/dmclock/benchmark/plot_gen.sh
src/dmclock/benchmark/run.sh
src/init-rbdmap
src/loadclass.sh
src/mrgw.sh
src/mstop.sh
src/multi-dump.sh
src/rbd-replay-many
src/rbdmap
src/script/ceph-debug-docker.sh
src/script/crash_bdev.sh
src/script/dep-report.sh
src/script/sepia_bt.sh
src/script/smr_benchmark/linearCopy.sh
src/script/smr_benchmark/linearSMRCopy.sh
src/test/client/iozone.sh
src/test/client/kernel_untar_build.sh
src/test/crush/crush_weights.sh
src/test/detect-build-env-vars.sh
src/test/docker-test-helper.sh
src/test/docker-test.sh
src/test/encoding/check-generated.sh
src/test/encoding/generate-corpus-objects.sh
src/test/encoding/readable.sh
src/test/mgr/mgr-dashboard-smoke.sh
src/test/objectstore/run_seed_to.sh
src/test/rgw/test-rgw-call.sh
src/test/rgw/test-rgw-common.sh
src/test/rgw/test-rgw-meta-sync.sh
src/test/rgw/test-rgw-multisite.sh
src/test/run-rbd-tests
src/test/run-rbd-unit-tests.sh
src/test/run-rbd-valgrind-unit-tests.sh
src/test/system/rerun.sh
src/test/test_common.sh
src/test/test_crush_bucket.sh
src/test/test_csyn.sh
src/test/test_lost.sh
src/test/test_pidfile.sh
src/test/test_pool_create.sh
src/test/test_pools.sh
src/test/test_rw.sh
src/test/test_split.sh
src/test/test_subman.sh
src/test/test_unfound.sh
src/test/vstart_wrapper.sh
src/tools/ceph-lazy/ceph-lazy
src/tools/ceph-monstore-update-crush.sh
src/tools/rbd_recover_tool/common_h
src/tools/rbd_recover_tool/database_h
src/tools/rbd_recover_tool/epoch_h
src/tools/rbd_recover_tool/metadata_h
src/tools/rbd_recover_tool/osd_job
src/tools/rbd_recover_tool/rbd-recover-tool
src/tools/rbd_recover_tool/test_rbd_recover_tool.sh
src/tools/setup-virtualenv.sh
src/vstart.sh
systemd/ceph

index 38debddfa86fb18712cd7512a29c586e943ed61e..f1a56118dfee2cbdadf63aa2c7343b93c9b67ed2 100644 (file)
@@ -28,7 +28,7 @@ Other improvements:
        easy creation of OSDs.
   -    RBD is actually buildable and can be used to manage RADOS BLOCK 
        DEVICEs.
-  -    Most of the awkward dependencies on Linux-isms are deleted only 
+  -    Most of the awkward dependencies on Linux-isms are deleted only
        /bin/bash is there to stay.
 
 Getting the FreeBSD work on Ceph:
index 3486d98d9db83001816d80aa7f05c0cf80d75d70..1792e4c242d29aa99fe97f897e04df608593de95 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 pool=rbd
 image=my-image
index 42f4f2081776b1fcc86e32c4eceb8edb37bfb3a9..9b138c67836bc1d30ffdc0ebff7daf5b3e80e76a 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 lttng create
 lttng enable-event -u 'librbd:*'
index 28f4876008a5ebcb858d637f5dea29d6c7ab2142..d7e07e9beff24dab56c5ed33bc293e83626002df 100755 (executable)
@@ -1,3 +1,3 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 ../../src/rbd-replay-prep traces/ust/uid/10002/64-bit replay.bin
index 02a53589ef9dcb4f7f707beac41fc329b400b1ab..9a73693c5cf404a75326aa29ab56f66ed0e5400a 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 mkdir -p traces
 lttng create -o traces librbd
index bb10f9a753a1d979be2f9f6669081130fd9222ac..35b054f42b1c6960c82a87eb7a1dd26a68963aa4 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash -e
+#!/usr/bin/env bash
 #
 # Ceph distributed storage system
 #
@@ -11,6 +11,7 @@
 #  License as published by the Free Software Foundation; either
 #  version 2.1 of the License, or (at your option) any later version.
 #
+set -e
 DIR=/tmp/install-deps.$$
 trap "rm -fr $DIR" EXIT
 mkdir -p $DIR
index 705d88de38c42a32fec79938209d8438a417c0bd..26582f183b88304f63e517b7632b3c5dd636bd39 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Copyright (C) 2015 Red Hat <contact@redhat.com>
 #
index ef80a63f93e1a3931ac5b4644b9875b69f6af086..49bafad4255620c3647bc2e31de00338232896c8 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 set -e
 #
 # Script to mirror Ceph locally
index 4b6392bf45eb2d6988801780edc53d785ca553cf..280118bc84541c482ec8f9eb41077ce62fecc5ae 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Simple script which performs a HTTP and rsync check on
 # all Ceph mirrors over IPv4 and IPv6 to see if they are online
index 00f4f020e5d267284c80ee57f9d57f59e1ad5a16..0bdf2ed1ab5519b134d0d708323858bd0893431c 100755 (executable)
@@ -1,4 +1,5 @@
-#!/bin/bash -x
+#!/usr/bin/env bash
+set -x
 
 basedir=`echo $0 | sed 's/[^/]*$//g'`.
 . $basedir/common.sh
index ab592667c0af269ae118fd985e3fa0b895db26d4..3ee5bc90dd042d73f0c7068146a927a9ae99c592 100644 (file)
@@ -1,4 +1,5 @@
-#! /bin/bash -e
+#!/usr/bin/env bash
+set -e
 
 mount () { :; }
 umount () { :; }
index edc14a02142b53f5692114b3553920f6167e062e..d69e8c7204ce319da4f42ad23140760b10fbbdd1 100755 (executable)
@@ -1,6 +1,6 @@
-#!/bin/bash -x
+#!/usr/bin/env bash
 
-set -e
+set -ex
 
 basedir=`echo $0 | sed 's/[^/]*$//g'`.
 testdir="$1"
index afaec747e926eca8774cc84e2608f8a19a6d3015..cefa98b6a957f5957c958ffbf3fe7ce85ea92253 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 # $1 - part
 # $2 - branch name
index 30a378d20ec096b53e8dcac5cca4368134ee5fb2..fa75f13beddcf266dcae61e86bf2d9850c867b67 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 #command line => CEPH_BRANCH=<branch>; MACHINE_NAME=<machine_type>; SUITE_NAME=<suite>; ../schedule_subset.sh <day_of_week> $CEPH_BRANCH $MACHINE_NAME $SUITE_NAME $CEPH_QA_EMAIL
 
index 56be0fb56a0478ad2b56835695143e50c01e8152..1bf2494de186c94ff914a3a6c836c7f54fc348fd 100755 (executable)
@@ -1,4 +1,5 @@
-#!/bin/bash -x
+#!/usr/bin/env bash
+set -x
 
 mkdir links
 for f in `seq 1 8`
index b5f80791572045fdcb11bcab13093891b37000f0..c959995cf2566377d88709b6acfbaff8d850c3c1 100755 (executable)
@@ -1,4 +1,5 @@
-#!/bin/bash -x
+#!/usr/bin/env bash
+set -x
 
 for f in `seq 1 8`
 do
index ced5a32b083f776f3821be3566d1ef0bfb912a24..29b4483e99c045019ccf6cb61c51e898421b8a74 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 # /nightlies/cron_wrapper.sh
 
 # check for no argument case and stop
index 76a2e8a64226e91133b53293ee7cf5bca6e20d94..b4d14f9c2eb7ac74c628538ae07ffd6268f6303b 100755 (executable)
@@ -1,4 +1,4 @@
-#! /bin/bash
+#! /usr/bin/env bash
 if [ $# -ne 5 ]; then
     echo 'Usage: ceph_install.sh <admin-node> <mon-node> <osd-node> <osd-node> <osd-node>'
     exit -1
index 5f2d05ac80df9de27645d745eb315122a3f0cf81..0c87039dbdb20f5363a69df083a2500724dc81d9 100755 (executable)
@@ -1,4 +1,4 @@
-#! /bin/bash
+#! /usr/bin/env bash
 if [ -f ~/secrets ]; then
     source ~/secrets
 fi
index 6a2a2ba5b92c6a42fd36c3de6bbc792b51c02c3e..8581de601c36544c488d4203ea521018545e8dc5 100755 (executable)
@@ -1,4 +1,4 @@
-#! /bin/bash
+#! /usr/bin/env bash
 cephnodes=$*
 monnode=$1
 sudo yum -y install ceph-ansible
index c3d8df6b2bf8c295b6a2ad37674d49f975761f64..7eb0b701121dc5284ea6a14d430b37baf64a8d65 100755 (executable)
@@ -1,4 +1,4 @@
-#! /bin/bash
+#! /usr/bin/env bash
 ed /etc/ansible/hosts << EOF
 $
 a
index a62ef140072843ca670c4d356000565dfae9afe0..751658b096f5daf672e9602640f5edb20d90f129 100755 (executable)
@@ -1,4 +1,4 @@
-#! /bin/bash
+#! /usr/bin/env bash
 ed /usr/share/ceph-ansible/group_vars/osds << EOF
 $
 /^devices:
index 9fc2dde260477880bef4661be6a7d8260ef41d2f..abc368b0a12b6dab4a627f2e2856e7caea34e4e1 100755 (executable)
@@ -1,4 +1,4 @@
-#! /bin/bash
+#! /usr/bin/env bash
 source copy_func.sh
 allparms=$*
 cmdv=$1
index e4b74af18ada3efe65ffc3619cdabc146c39f6bb..5d82f35d9f5a15d07f8a7db2c912d7d2722a2dab 100755 (executable)
@@ -1,4 +1,4 @@
-#! /bin/bash
+#! /usr/bin/env bash
 SPECIFIC_VERSION=latest-Ceph-2-RHEL-7 
 #SPECIFIC_VERSION=Ceph-2-RHEL-7-20160630.t.0
 #SPECIFIC_VERSION=Ceph-2.0-RHEL-7-20160718.t.0
index 2e560024cb8c4cda887bbbadb28136d3d7416bdc..99c00da33e1eccb3d88c541f07c2aac2d1eae17f 100755 (executable)
@@ -1,4 +1,4 @@
-#! /bin/bash
+#! /usr/bin/env bash
 cmd_wait=$1
 shift
 sites=$*
index 6b538cd6bcfc23f7179bc63a4612a54c1042ffce..ffed4f1dcd5a512123bc0a99ffeb1fd6024f5e9e 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 declare -A rsapub
 for fulln in $*; do
     sname=`echo $fulln | sed 's/\..*//'`
index 0bd50b7977bd798680058043d840ea36188a65a3..723c8306916856b11e9cdf0332632ce046ff855b 100755 (executable)
@@ -1,4 +1,6 @@
-#!/bin/bash -f
+#!/usr/bin/env bash
+set -f
+
 #
 # On the ceph site, make the pools required for Openstack
 #
index 86cb15ee37928930ef5811eaf90f1fc2f56d4f6e..5afb3c7879b7a6a9acce20c2efc5f43b43e2049c 100755 (executable)
@@ -1,4 +1,6 @@
-#! /bin/bash -f
+#!/usr/bin/env bash
+set -f
+
 echo $OS_CEPH_ISO
 if [[ $# -ne 4 ]]; then
     echo "Usage: ceph_cluster mon.0 osd.0 osd.1 osd.2"
index 63ef679be4759fe55433218fe2acef8ae67e32f4..75e9e91a0c7e978eca8a75da9718c39a0061bc6e 100755 (executable)
@@ -1,4 +1,5 @@
-#!/bin/bash -f
+#!/usr/bin/env bash
+set -f
 
 #
 # Generate a libvirt secret on the Openstack node. 
index 1439c08e31ee82fc6d775922a44385d75f49fc35..a2b235e76f33cc16ad9b7c55ab86135efa3d89a3 100755 (executable)
@@ -1,4 +1,6 @@
-#!/bin/bash -f
+#!/usr/bin/env bash
+set -f
+
 #
 # Remotely setup the stuff needed to run packstack.  This should do items 1-4 in
 # https://docs.google.com/document/d/1us18KR3LuLyINgGk2rmI-SVj9UksCE7y4C2D_68Aa8o/edit?ts=56a78fcb
index 92465c4afd219095aa11c8b1cc59174591cc7684..8764cbeb61d8aa4543ddf7c0c01c0881eceb2bbe 100755 (executable)
@@ -1,4 +1,6 @@
-#!/bin/bash -fv
+#!/usr/bin/env bash
+set -fv
+
 #
 # Create a glance image, a corresponding cinder volume, a nova instance, attach, the cinder volume to the
 # nova instance, and create a backup.
index b81c815d6e7d8b3f2b2232b4444e3254cf4905c9..f5f12fe50c8fc28c010b4845049ac6cd44b9d206 100755 (executable)
@@ -1,4 +1,6 @@
-#!/bin/bash -fv
+#!/usr/bin/env bash
+set -fv
+
 #
 # start the Openstack services
 #
index e1926f7f9c0421862256579bc948f7a38045ef7c..232cf45adb46306d711fc2aac974ab825ddd0f04 100644 (file)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 die() {
        echo "$*"
index 1ef67e6c2ee53ade68b6f7776768eb3cb3341939..2b7ce8ee2e8c3fc7f1d5c9e99896746e83505b47 100755 (executable)
@@ -1,4 +1,5 @@
-#!/bin/bash -x
+#!/usr/bin/env bash
+set -x
 
 basedir=`echo $0 | sed 's/[^/]*$//g'`.
 . $basedir/common.sh
index 9845d08d5d907feda0eca04dea87bf4244f57900..4393c7c866c575c3c84e2db602c3fbc078fb9305 100644 (file)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 # Copyright (C) 2012 Dreamhost, LLC
 #
index 4a782ba73da73b28025b39477b881a63af869315..a889fe5d05dd2b30cdfe083ed76d2470812cda50 100644 (file)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 # Copyright (C) 2012 Dreamhost, LLC
 #
index aafc0f1b511bfe6c056788f55b851734b5beb182..1b8bab0f92b5b002ef6a9aa0e646546bce13f2c4 100644 (file)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # This is a wrapper around run_xfstests.sh to provide an expunge file
 # suitable for krbd xfstests runs.
index a15f598256cfe8843280f580cc697b7b71e6889e..40300cea6fef3b2df632eb08039a603565a5019b 100644 (file)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # TODO switch to run_xfstests.sh (see run_xfstests_krbd.sh)
 
index 573046959a98c27268af3bf3735b15ffc74cb1df..bd809fef73e2d5de43d61c4ccb9c4ac46fc65c6d 100755 (executable)
@@ -1,6 +1,6 @@
-#!/bin/bash -x
+#!/usr/bin/env bash
 
-set -e
+set -ex
 
 basedir=`echo $0 | sed 's/[^/]*$//g'`.
 testdir="$1"
index c1a5b0106e6e3d092c2f0f42b8694f4f441ca90f..7be545356d201a92b0024ebc97b3b5062b286803 100755 (executable)
@@ -1,4 +1,5 @@
-#!/bin/bash -x
+#!/usr/bin/env bash
+set -x
 
 mkdir -p testspace
 ceph-fuse testspace -m $1
index fd76718af6a2a6a21e2c0b1944a2b379efd16e6f..f7e8605faf0e3e69adef8797db1bcf2a060a0597 100755 (executable)
@@ -1,8 +1,9 @@
-#!/bin/bash -x
+#!/usr/bin/env bash
+set -x
 
 mkdir -p testspace
 /bin/mount -t ceph $1 testspace
 
 ./runallonce.sh testspace
 
-/bin/umount testspace
\ No newline at end of file
+/bin/umount testspace
index 2e5ef46be79d43692e18d2f3533e1277d34f59f1..a6e12f3563859666e9842786554f727db861afd6 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 die() {
         echo ${@}
index 219e301942027b378155aa807eba77dad7982819..85186eb0459f614c0d78579029abf72bbf325ece 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Copyright (C) 2013,2014 Cloudwatt <libre.licensing@cloudwatt.com>
 # Copyright (C) 2014,2015 Red Hat <contact@redhat.com>
index 6e03a999c64d7475854b1a082e8ec6f6410acec5..2b8aa44330f6b1bb9179642a692e41bdd68e1e25 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Copyright (C) 2017 Red Hat <contact@redhat.com>
 #
index 1cbc6f5f7a8a1c090a9f6c18ea0eb26ef70553c6..7aaffa87d92e5850acc539f5e44f79234cbfd744 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Copyright (C) 2017 Red Hat <contact@redhat.com>
 #
index 26aff64aa1a1afc58967ffeac0bad2c90d0bf31a..b5648d472b973121ea3bfc3af54758b3949c10df 100755 (executable)
@@ -1,4 +1,5 @@
-#!/bin/bash -x
+#!/usr/bin/env bash
+set -x
 
 source $CEPH_ROOT/qa/standalone/ceph-helpers.sh
 
index 95126ead058586f76646fc9091fdcfbc14644d49..89705e1980e40a0888ca64a3a3f71c335f2895be 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Copyright (C) 2014 Cloudwatt <libre.licensing@cloudwatt.com>
 # Copyright (C) 2014, 2015 Red Hat <contact@redhat.com>
index 678088e94140879710559f8d0a673069aeea18d2..7503322fca6922bcfad2ae17ed6606d08b3cf5ed 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Copyright (C) 2015 Red Hat <contact@redhat.com>
 #
index 03151531cd8d59ce8b1e3cad31315b6fb4d8c510..be6349b815fd2e39c9329c32118e18f0f1d91220 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Copyright (C) 2014 Red Hat <contact@redhat.com>
 #
index 3a6788ecaa36409327f10da8f9271cccecb8c977..994a8a6ebbd273599d2de8d1dd49491cfa87e7a4 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Copyright (C) 2013,2014 Cloudwatt <libre.licensing@cloudwatt.com>
 # Copyright (C) 2014 Red Hat <contact@redhat.com>
index 8abf6c5b125c469baeafd864d28dc2243db00852..adcbe8b519430a6681a39ef3c962c0e6849d5840 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Copyright (C) 2014 Cloudwatt <libre.licensing@cloudwatt.com>
 # Copyright (C) 2014, 2015 Red Hat <contact@redhat.com>
index 6b8e58d8a375b1c44320e05b724b207628049abd..3a4f07bb0b87ddd2b53537e2693051e693bd212c 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Copyright (C) 2013 Cloudwatt <libre.licensing@cloudwatt.com>
 # Copyright (C) 2014 Red Hat <contact@redhat.com>
index f87157c78abb4cecbe2def20ad1f99f0fb3167c2..fa8f67904a7f5c17a2c3cc073bff91c8e3b47d5b 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Copyright (C) 2017 Quantum Corp.
 #
index 0955803ae74863dc477ec13c3e9533b0043be008..4b8446059e5196d405c6c4c4e21959e376650c7f 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Copyright (C) 2015 SUSE LINUX GmbH
 #
index e3b539bf7b701db1a786eb79773ca6ea91c339a5..097c27c4d6afb1f5798b0bfad7f35178ddde4b8d 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Copyright (C) 2013 Cloudwatt <libre.licensing@cloudwatt.com>
 # Copyright (C) 2014,2015 Red Hat <contact@redhat.com>
index 9574f5f0f9bc3b32855dadba487d9ef907dc51bd..1f5096be1b578942e6d2959b9281dda85bd6deeb 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Copyright (C) 2015 SUSE LINUX GmbH
 #
index b40a6bc6740dcfa0c8aab8ab9d66005eea18c58b..158bd434ca0aecc716b59a58d49bbe50861dced8 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Copyright (C) 2014 Cloudwatt <libre.licensing@cloudwatt.com>
 # Copyright (C) 2014, 2015 Red Hat <contact@redhat.com>
index 747e30db5ae0cff59795d293b1dca31c8a304c67..84a6be2a9e861ec1022f81d2553cc3c0e6fa389f 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Copyright (C) 2014 Cloudwatt <libre.licensing@cloudwatt.com>
 # Copyright (C) 2014, 2015 Red Hat <contact@redhat.com>
index 6bfc2587f8b8b4b9cc4fb6b9b0ef05de18df99f6..dfa99b5e1326c28a2b9d6b7ded068ebb2fa408dd 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Copyright (C) 2014 Cloudwatt <libre.licensing@cloudwatt.com>
 # Copyright (C) 2014, 2015 Red Hat <contact@redhat.com>
index 99a6064c0aee36ed4f77f98742a61a3f3f9f8277..dd2aa717a6d5c9fba758a250082ec8bdeb0e8cdd 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Copyright (C) 2013, 2014 Cloudwatt <libre.licensing@cloudwatt.com>
 # Copyright (C) 2014, 2015 Red Hat <contact@redhat.com>
index dcf89fd26e2d0cae95cf656d517ff0ce0421bc74..bdc8cb638a8ba258264a8473d055998f2957cfb0 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 #
 # Generic pool quota test
index 59a6f8d8d7ea87eb1730919856fca1210ffeefd8..5bcbe3776ebcb3b67adbdd40318365a2f493ff11 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Copyright (C) 2014 Cloudwatt <libre.licensing@cloudwatt.com>
 # Copyright (C) 2014, 2015 Red Hat <contact@redhat.com>
index d2dfe992848b42de34a286771b1ec8bd65b2aa51..99312b94f17b915d298ef58664ba387edb4865aa 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Copyright (C) 2014 Cloudwatt <libre.licensing@cloudwatt.com>
 # Copyright (C) 2014, 2015 Red Hat <contact@redhat.com>
index 3dcb0a8fa52a37a802759ca81be7ccbdf9ee472e..8ac0ab541d8ac7916ffa738db0c81b0ccba9b2ee 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Copyright (C) 2014 Cloudwatt <libre.licensing@cloudwatt.com>
 # Copyright (C) 2014, 2015 Red Hat <contact@redhat.com>
index a1bd1af5d621a3e804fcaf617eea38f427e0f431..554648a5d03d6357cb22011e3498b6e1115d7ca7 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 source $CEPH_ROOT/qa/standalone/ceph-helpers.sh
 
index 3b8e5a31b50013ca8c4ebe24303773f34f7d9d0d..42584414dc158d68ddfa92203f9905d0cb10db7a 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Copyright (C) 2016 Piotr DaÅ‚ek <git@predictor.org.pl>
 # Copyright (C) 2014, 2015 Red Hat <contact@redhat.com>
index b3c800c081dc6a12a09b33cd6f494a984c18e4c8..e99f23938dbc538e2bf0c19015539c71bf4b7f53 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Copyright (C) 2015 Intel <contact@intel.com.com>
 # Copyright (C) 2014, 2015 Red Hat <contact@redhat.com>
index ddeee951a9e07ed481420ddbd92de55e45d0df3a..6d6438629dcda192af0a9463caa4d9bdb5c3c265 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Author: Vicente Cheng <freeze.bilsted@gmail.com>
 #
index 807c0abe5cb4c2ea8af378fe9764787292f39d62..9fd875d1796411dacfb2a4490fcbad613eb64d89 100755 (executable)
@@ -1,4 +1,4 @@
-#! /bin/bash
+#!/usr/bin/env bash
 #
 # Copyright (C) 2015 Red Hat <contact@redhat.com>
 #
index 14b933233fac9859c63aace6688819d77e42e767..1f46b4c195226aff220d30461ba9aaf009e4e0b2 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash -x
+#!/usr/bin/env bash
 #
 # Copyright (C) 2014 Red Hat <contact@redhat.com>
 #
@@ -14,6 +14,7 @@
 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 # GNU Library Public License for more details.
 #
+set -x
 source $CEPH_ROOT/qa/standalone/ceph-helpers.sh
 
 if [ `uname` = FreeBSD ]; then
index 020363683e94afb3f7af881ff7c4ff7989b2d6f2..efd7f1a04c2da12244cc80e416703f440585257b 100755 (executable)
@@ -1,4 +1,4 @@
-#! /bin/bash
+#!/usr/bin/env bash
 #
 # Copyright (C) 2015 Red Hat <contact@redhat.com>
 #
index d39695bef0f7cf02e7b27e1b7565995a2626a204..7271925c9f7c5627c376996065f0e04217ce87c9 100644 (file)
@@ -7,11 +7,11 @@
 
 # allow passwordless access for debugging
 - |
-  #!/bin/bash
+  #!/usr/bin/env bash
   exec passwd -d ubuntu
 
 - |
-  #!/bin/bash
+  #!/usr/bin/env bash
 
   # mount a NFS share for storing logs
   apt-get update
index 7f3d64ff742949ba59779b19d11016ad9d7bdda8..731d769f0c9fc5ffece7595509bd2c7bea803d18 100644 (file)
@@ -1,11 +1,11 @@
 - |
-  #!/bin/bash
+  #!/usr/bin/env bash
   cp /var/log/cloud-init-output.log /mnt/log
 
 - |
-  #!/bin/bash
+  #!/usr/bin/env bash
   umount /mnt/log
 
 - |
-  #!/bin/bash
+  #!/usr/bin/env bash
   shutdown -h -P now
index 7a795b925d68cb8e70f0fd1f7f3c7a68b847c8a1..b9af6254ffda70c73f94f5fdc6b3498eff89e55c 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 if [ -f $(dirname $0)/../ceph-helpers-root.sh ]; then
     source $(dirname $0)/../ceph-helpers-root.sh
 else
index f65f591f4c8b096dd88e38c05f59f72191274c7d..c54dbde7adb11bf344a54430c05da13a69f31acc 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Copyright (C) 2015 Red Hat <contact@redhat.com>
 #
index 1d0051aa88ddc7c46d686915805ed40568fca008..da5a273c150b5d3d26b08a119350d462bcc56b0c 100755 (executable)
@@ -1,6 +1,7 @@
-#!/bin/bash -x
+#!/usr/bin/env bash
 # -*- mode:shell-script; tab-width:8; sh-basic-offset:2; indent-tabs-mode:t -*-
 # vim: ts=8 sw=8 ft=bash smarttab
+set -x
 
 source $(dirname $0)/../../standalone/ceph-helpers.sh
 
index 413f7084f90e87298aed5c54017fbd3f32996133..08ae937cc3f397e9977be20d337ab7bf75345f2f 100755 (executable)
@@ -1,6 +1,6 @@
-#!/bin/bash -x
+#!/usr/bin/env bash
 
-set -e
+set -ex
 
 expect_false()
 {
index e2bec8edd272ed69f46c8455cb3123e275eca44c..7f4030481f7059ac779392bec9e5c7a9fd9c6bd4 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash 
+#!/usr/bin/env bash
 #
 # Copyright (C) 2015 Red Hat <contact@redhat.com>
 # Copyright (C) 2013,2014 Cloudwatt <libre.licensing@cloudwatt.com>
index 2a65d5968def75175fc02658ad36c572be6d470f..7f36c91c7a723f1d921863441497e4868d2c8a3b 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash -ex
+#!/usr/bin/env bash
 #
 # Copyright (C) 2014 Red Hat <contact@redhat.com>
 #
@@ -14,6 +14,7 @@
 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 # GNU Library Public License for more details.
 #
+set -ex
 
 : ${CORPUS:=https://github.com/ceph/ceph-erasure-code-corpus.git}
 : ${DIRECTORY:=$CEPH_ROOT/ceph-erasure-code-corpus}
index c059f88cad38d08c083065f548d6658dbbbdc6e3..eea0ec3bc47b2243ac1bf96f109cc0fe251401d5 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 set -e
 
index 29ac407ebb4617e7a8d6851b41165cb5b9d32ece..81133627347b6a2806ba48c29491ff4bda754b86 100755 (executable)
@@ -1,7 +1,6 @@
-#!/bin/bash -x
+#!/usr/bin/env bash
 
-set -e
-set -x
+set -ex
 
 # detect data pool
 datapool=
index 91d316648988a8b738cbc8201beb75564d11a6e1..119386b3eb86c25a55217e7713d156c7f64ba092 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 set -e
 
index 68e40722928c9b3afe4ec934c7e15fd96ee49b62..7c8c4e2b4e4a12aa43f4c2be6d23ddfa58b67eeb 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 set -e
 
index 63f8c745b38b1a03a7d7e7645af34d34d887566d..6a175dcd9d6a08fd5d45273f70700f9878df61f9 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 # check if there is file changed while being archived
 
 set -e
index ff27a613add6a0633e43907a0602785a44690d72..1315be6d8609cef2a5e5267843c620904ae143e4 100755 (executable)
@@ -1,7 +1,6 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
-set -e
-set -x
+set -ex
 
 function expect_false()
 {
index f8fb61498c2dcf8bf81bb8a5c8bc052f0017af5a..4d892ca38a997f16be7f0a22f80e3b4b3178b34e 100755 (executable)
@@ -1,6 +1,6 @@
-#!/bin/bash -x
+#!/usr/bin/env bash
 
-set -e
+set -ex
 
 ceph mds set allow_new_snaps true --yes-i-really-mean-it
 
@@ -28,4 +28,4 @@ rmdir .snap/snap1
 
 rm file?
 
-echo OK
\ No newline at end of file
+echo OK
index b2458d9b289270426595b1817c8cadbbe4088e41..a4438f729466adb59f775eb34f81f50b964adc20 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 ceph mds set allow_new_snaps true --yes-i-really-mean-it
 
index f2e9fccbd308937f0ff9e29325fe0db4c3be0d58..060091c3006cd6f12bede0bea90ad1157a8fdda1 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 set -e
 set -x
index 7996aece7ea4c42264bebcd0c858a2265135d6c3..3d6988a21d7fb3de7167229228c02378c7d6cca7 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 set -e
 set -x
index 1ff057a7f4a885969a35dd00555953ed8dd6a4d5..616b08af20a04226fc73a2d39198c7817ab63c9d 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 set -e
 set -x
index 93fee1f5b3e1b0dd1491e85643baec4be13e2840..1182aafc1660c44b0a5eabba1d301dc75039ddab 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 set -e
 
index b8c10947424d7ddcecec8f97c053b32288a96c76..1f59ae1f73476ce550c1a12de9d74f70c7bc6ce9 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 set -e
 set -x
index e00247d9c9bc76853dfc8f82f8de98b689d7ce9c..134d514c4edaab623985cba03eb1080850a8d056 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 tmp=/tmp/cephtest-mon-caps-madness
 
index 11f0b4f4ae50253e41b0cff960eacdc065d2d542..04875b3aee866f66706e0c73af61fea08335095b 100755 (executable)
@@ -1,6 +1,6 @@
-#!/bin/bash -x
+#!/usr/bin/env bash
 
-set -e
+set -ex
 
 function expect_false()
 {
index b19dbd167cc3574ec66c864cdd81509a32d498ef..a336fd544e723bbcc31863e7754929ca052065a1 100755 (executable)
@@ -1,6 +1,6 @@
-#!/bin/bash -x
+#!/usr/bin/env bash
 
-set -e
+set -ex
 
 function expect_false()
 {
index 3ff7e7603373cd884344028a223e16f6666f34b6..7ae83477f7cd029321e9cb0aa8aec91f975c407f 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 # attempt to trigger #6047
 
index 133e66867c0e810575bbee4c4f0df6a1332f5b7c..120fb2634612384f32a2220fc10444d7d0bb9ba3 100755 (executable)
@@ -1,4 +1,5 @@
-#!/bin/bash -ex
+#!/usr/bin/env bash
+set -ex
 
 what="$1"
 [ -z "$what" ] && what=/etc/udev/rules.d
index cbf398fe65f181ce6fabed6fa3c3372d11d17aaa..871c2310db8312b973df608e7336b4e51fa29030 100755 (executable)
@@ -1,4 +1,5 @@
-#!/bin/bash -ex
+#!/usr/bin/env bash
+set -ex
 
 parallel=1
 [ "$1" = "--serial" ] && parallel=0
index 3e246949df428492d22d0f21ee2aca1dd07e0b6f..ac7877ddaab473a04fc39dd7e2859aaff8d20cb1 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 set -ex
 shopt -s nullglob # fns glob expansion in expect_alloc_hint_eq()
index 5975893600a0225e11d14031deb446101b4657f9..5e28b355aba887461e642e65f303ad9313976764 100755 (executable)
@@ -1,6 +1,6 @@
-#!/bin/bash -x
+#!/usr/bin/env bash
 
-set -e
+set -ex
 
 expect_false()
 {
index 94580c234ca30ebd6eeaba37525a6aa7ca85f5db..d24a87bef25958f9c6102e2684db6151a8c4862b 100755 (executable)
@@ -1,4 +1,6 @@
-#!/bin/bash -ex
+#!/usr/bin/env bash
+set -ex
+
 ############################################
 #                      Helper functions
 ############################################
index 8bf60065f017e7d942ac29a190e89b857bb6bcde..599579fe0c3c3baba652f92b5c5ae10c4333456b 100755 (executable)
@@ -1,6 +1,6 @@
-#!/bin/bash -ex
+#!/usr/bin/env bash
 
-set -u
+set -uex
 
 # number of osds = 10
 crushtool -o crushmap --build --num_osds 10 host straw 2 rack straw 2 row straw 2 root straw 0
index 8597b7147c88da8efc5395a17ed0e9ce3f295ade..95c9768c10f8be15593f8ebfa336f75270931c4d 100755 (executable)
@@ -1,6 +1,6 @@
-#!/bin/bash -x
+#!/usr/bin/env bash
 
-set -e
+set -ex
 
 expect_1()
 {
index bb35d727e6dfc640ea33b83e1d47bc7c396dd20e..f0660b3bdc3549e513edf4406d3119db2a0f3777 100755 (executable)
@@ -1,4 +1,5 @@
-#!/bin/bash -x
+#!/usr/bin/env bash
+set -x
 
 delay_mon() {
     MSGTYPE=$1
index 6a3ebe0b22e2ddda1a0fedd0ef6b3834861bbac1..8b89112b34766ceddc06bf9b051cf20fdd690ec9 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 die() {
     echo "$@"
index e2fb7974724ba7e0371167e74ea8127549fad470..abaad75f581823ac90c26c3f364263e223417b6c 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash -e
+#!/usr/bin/env bash
 
 # Copyright (C) 2013 Inktank Storage, Inc.
 #
@@ -47,7 +47,7 @@
 
 ################################################################
 
-set -x
+set -ex
 
 # Default flag values; RBD_CONCURRENT_ITER names are intended
 # to be used in yaml scripts to pass in alternate values, e.g.:
index bab84e9521cd9917d02397569c47f90d603d281e..73a7290a18b021f6e68a0ef7c726dee43abd9c8f 100755 (executable)
@@ -1,4 +1,5 @@
-#!/bin/bash -ex
+#!/usr/bin/env bash
+set -ex
 
 function cleanup() {
     rbd snap purge foo || :
index 41e44125fdebfe3f922b6403c79a78db6511f29a..d9cd8efdad0a247bfc5e8bc8b02b0cda225f7729 100755 (executable)
@@ -1,4 +1,5 @@
-#!/bin/bash -ex
+#!/usr/bin/env bash
+set -ex
 
 max=20
 size=1500
index 63a63846bd05373258e664c3315d7d1837d37dea..22853c07ad32544ba40c67838fc0884c14bfc0a0 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 # This is a test for http://tracker.ceph.com/issues/8979 and the fallout
 # from triaging it.  #8979 itself was random crashes on corrupted memory
index 907ce869bc44a863a55f46e940a434c190b4bc27..779e315fec4f08751481c0172055bdf589cbf0d2 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash -e
+#!/usr/bin/env bash
 
 # Copyright (C) 2013 Inktank Storage, Inc.
 #
@@ -41,6 +41,7 @@
 # supercede these defaults.  Such variables have names that begin
 # with "IMAGE_READ_", for e.g. use IMAGE_READ_PAGE_SIZE=65536
 # to use 65536 as the page size.
+set -e
 
 DEFAULT_VERBOSE=true
 DEFAULT_TEST_CLONES=true
index 4d9b8063a60d089c8ca44426e799ab4c94c23a35..f4813afc8be2bf6140f01ea7b46bbb6a97372cc6 100755 (executable)
@@ -1,4 +1,5 @@
-#!/bin/bash -e
+#!/usr/bin/env bash
+set -e
 
 . $(dirname $0)/../ceph-helpers.sh
 
index 5fb6b9358a01951543ce11e2b046ea527a832d1e..735396b3f3191830e2eda8975d2de6e28d704c76 100755 (executable)
@@ -1,4 +1,5 @@
-#!/bin/bash -ex
+#!/usr/bin/env bash
+set -ex
 
 CEPH_SECRET_FILE=${CEPH_SECRET_FILE:-}
 CEPH_ID=${CEPH_ID:-admin}
index 7d72882133988b322086e6b926253e70cfda69d9..7ecdf03d6b121d148bb9ca12ec40c1f13f71c7b6 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 set -ex
 
index 958aecf7325453ba38f7be918ac577b3ba5f5b9f..dae18d83e68f62d625677a539f1c551d4a1a9916 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 set -ex
 
index 05fc8a98c6409d45aed24c437bb4ebe728651316..73f6036917e5074bb4f9541e3e72b9be2e2d0a6b 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 # This documents the state of things as of 4.12-rc4.
 #
index a7c44c8f42f487785021402d0f83945828bb89ee..46340a7d200e062828f2848e37798beae6db5a85 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 set -ex
 
index ce7d20fca0adf08823fc4a3868856d7abee249c5..99863849eb140f0da4ed9187b0fb79cface93100 100755 (executable)
@@ -1,4 +1,5 @@
-#!/bin/bash -ex
+#!/usr/bin/env bash
+set -ex
 
 RUN_TIME=300           # approximate duration of run (seconds)
 
index 0b6643dfa54762b8d2e500d224a6c231bcfc3eca..d0f26072eeeb63b4cc6be7e7d547b184fc9ecb94 100755 (executable)
@@ -1,4 +1,5 @@
-#!/bin/bash -ex
+#!/usr/bin/env bash
+set -ex
 
 pool=rbd
 gen=$pool/gen
index a435a67bb92cae908c4e19c6a04c28fe87df2a10..d5d2ee98e195a1209ca68fbd840554153e8e82c3 100755 (executable)
@@ -1,4 +1,5 @@
-#!/bin/bash -ex
+#!/usr/bin/env bash
+set -ex
 
 IMAGE_FEATURES="layering,exclusive-lock,object-map,fast-diff"
 
index f237f663762601719269ad3b5177496ffd076785..7045f5f09f55e81542fa62537ab5ead2b6f6582c 100755 (executable)
@@ -1,4 +1,5 @@
-#!/bin/bash -x
+#!/usr/bin/env bash
+set -x
 
 if [[ -z "${IMAGE_NAME}" ]]; then
   echo image name must be provided
index c064ee9b968df54af1397b35fce498b217a4cbea..2647dcdcdec05ae721dbfc15b2c220ec8a0c1669 100755 (executable)
@@ -1,4 +1,5 @@
-#!/bin/bash -ex
+#!/usr/bin/env bash
+set -ex
 
 if [[ -z "${IMAGE_NAME}" ]]; then
   echo image name must be provided
index 333e3d77c8bb048eeea37447ad9c58d2922c025d..e7628762a2b23c9c6ab0fdcb90f85c7849440460 100755 (executable)
@@ -1,4 +1,5 @@
-#!/bin/bash -ex
+#!/usr/bin/env bash
+set -ex
 
 . $(dirname $0)/../ceph-helpers.sh
 
index 7c24fded5ee60ee8c8fda2d827fdb4f904cf2412..7d787ce67232433fed79eb05ef732384c05ccc06 100755 (executable)
@@ -1,4 +1,5 @@
-#!/bin/bash -ex
+#!/usr/bin/env bash
+set -ex
 
 # create a snapshot, then export it and check that setting read flags works
 # by looking at --debug-ms output
index 8e627ddf6c8d94ff3d440107ac841b3e2dbd8f5a..0cb7f72521d685ecfe82531f0f978fee243b373f 100755 (executable)
@@ -1,4 +1,5 @@
-#!/bin/bash -ex
+#!/usr/bin/env bash
+set -ex
 
 STACK_BRANCH=stable/ocata
 
@@ -87,7 +88,8 @@ enable_plugin devstack-plugin-ceph git://git.openstack.org/openstack/devstack-pl
 EOF
 
 cat<<EOF > ${STACK_HOME_PATH}/start.sh
-#!/bin/bash -ex
+#!/usr/bin/env bash
+set -ex
 cd ${STACK_OPT_PATH}
 git clone https://git.openstack.org/openstack-dev/devstack -b ${STACK_BRANCH}
 
index ec8764c37dd722f63660ca5746ceea306d06d16c..6f6e4ce3449437ce06c3d93f091415dcd63a1453 100755 (executable)
@@ -1,4 +1,5 @@
-#!/bin/bash -ex
+#!/usr/bin/env bash
+set -ex
 
 TMPDIR=/tmp/rbd_test_admin_socket$$
 mkdir $TMPDIR
index 7ecafd46356865313ae4369a41e3e7e893829f97..1206da11aaf4f91850587885af5bb66157092099 100755 (executable)
@@ -1,5 +1,6 @@
-#!/bin/bash  -x
+#!/usr/bin/env bash
 # can't use -e because of background process
+set -x
 
 IMAGE=rbdrw-image
 LOCKID=rbdrw
index 8a493d04eb27549a3dc25c7eafda2a45e5c927ef..f97ff773f7bff132b8b8bd8dbbf2846640fb8423 100755 (executable)
@@ -1,4 +1,5 @@
-#!/bin/bash -ex
+#!/usr/bin/env bash
+set -ex
 
 dir=`dirname $0`
 
index 31c091ede358f0987a357f0e08b46211e0b992cc..913dd6a052ae7d4c4e6b7c10b3025533a2978ba8 100755 (executable)
@@ -1,4 +1,5 @@
-#!/bin/bash -ex
+#!/usr/bin/env bash
+set -ex
 
 # run s3-tests from current directory. assume working
 # ceph environment (radosgw-admin in path) and rgw on localhost:8000
index 17c91c8c375c331c29010fc6faa93e7cb9be00a1..3596a368be9beef34f45d8011b4ee39a0f8618ab 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 set -e
 
 echo "getting blogbench"
index 698ba9c52acc2d5c50a5df4b96963614fed918df..b60cc6a5e8ec30f6220506be863b9c7b31ab6119 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 set -e
 
index 60e91496511f9cbb446e73184f36e9d2cc7f92a9..525b6aa463149e58c944c03d0d29120609d3958d 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 set -e
 set -x
index 7297d835fb9733b5bc77d4f58ec74aafcf177b54..b0da022757669299a69145ded437c15b5f449065 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 set -e
 
index ea2be1cb905069c2cc1dbf8e349c8391e120682c..32c893b453f48e05ce8bf49ee4b67986cca89ae7 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 set -e
 
index 9ed66ab00633d8d8c068d77178a58ff295f69853..da0ab8f09a08542e10e4f30e2a21af7fcf9426d1 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 set -e
 
index 04e0645133346c7065f7b12a224aa49213540113..ee69de81cb2c086cc3fbf8d1a3bac9a63a6b78fc 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 set -x
 
index 92e123b99bb676d001a3e5401c161d2117d57b36..0780a8274ffa43adeb0088133cf67f453828b516 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 BIN_PATH=${TESTDIR}/fsstress/ltp-full-20091231/testcases/kernel/fs/fsstress/fsstress
 
index d159bde9719722613eb9c41d1766698c1fd64916..4e06a6bf6a89cbd666544eccee36d3ffa958e50f 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 set -e
 
 echo "getting iogen"
index c094952370248cde22b84cc5aef4cf5629945599..a37962d308eeb03d3c15d0315e667f04e088e4eb 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 set -e
 
index 4fcf8f1b67390fc6f0e264206cfe418380b7ebdd..7dc50cb0bd6944a7efd01674009e6ed1e00d450e 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 set -ex
 
index e6df309ad5b8bfde4b6240e56187767dcc14ee6e..84049420b425aa00dac1346a28305f9ff4e561c9 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 set -e
 
index 49b4f1464e1c20c725344bb1004a6797494486f9..a61148859a22a74236deb7b30030a0a62e442869 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 set -ex
 
index b23672c4f0a8b022d25103711ab2cc4a43f85049..195282b08cec8871480ba592ce0b6d495ff32ced 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Ceph distributed storage system
 #
index 9736dc400598b23f184e58db6efc527b2aadf9a0..33553b0df57d8d2fbd0e1107b1e4f7a62073cadc 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Copyright (C) 2015 SUSE LINUX GmbH
 # Copyright (C) 2016 <contact@redhat.com>
index 76935b9e1f7d4418d5d1c68a3ffc582f4fb6271e..149dd6a24588229429e5d421536f497e9994cabb 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Copyright (C) 2015 <contact@redhat.com>
 #
index c89092ef4036128dee0685fb6b1ebd1ff151c32e..49ee03026965b756db90680775720a5a11ebbc43 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Copyright (C) 2014 Cloudwatt <libre.licensing@cloudwatt.com>
 # Copyright (C) 2014, 2015, 2016, 2017 Red Hat <contact@redhat.com>
@@ -91,7 +91,7 @@ function command_fixture() {
     [ "$fpath" = `readlink -f $CEPH_BIN/$command` ] || [ "$fpath" = `readlink -f $(pwd)/$command` ] || return 1
 
     cat > $dir/$command <<EOF
-#!/bin/bash
+#!/usr/bin/env bash
 touch $dir/used-$command
 exec $CEPH_BIN/$command "\$@"
 EOF
index 8a88a03bd4c828e9ba0948bec9667f50e497fbbd..840baf346de66a6c1fc88f59b164338ab1c48fb0 100755 (executable)
@@ -1,4 +1,5 @@
-#!/bin/bash -e
+#!/usr/bin/env bash
+set -e
 
 # If these files exist, assume we are a source install.
 if [[ -f ../share/known_hosts_drop.ceph.com && -f ../share/id_rsa_drop.ceph.com ]]
index 80a77bd9a1af9bd69a6860e0fdf39441395d88d0..b4fdab3deed87f81c272c06362e3820dec443300 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 config_dir="configs"
 repeat=2 #5
 
index d90bde1921aab3264a72d419d31445bb8fd672c8..21ae03ddf4aca3df81729387546335eb71cc5898 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 if [ "$1" != "" ]; then
   output_file="$1"
index 11432b53008612f844f05c868321bc5799b0f594..ae76d82ca2ad901d1082861411491f6108f982d5 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 # default value
 k_way=3 #11
index cc8b7f592da6684d0367ced4ae665b009b53c9e7..bc79f587fb923b70f98e6e55798c514abd1530f1 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # rbdmap Ceph RBD Mapping
 #
index cbad73b7a16a9fabf4a5eb3b1628324b5d0a24fb..f05de69444aed4f2973a3960e6e74667affef30a 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 fname=$1
 [ -z "$fname" ] && exit
index c5770ca917f28d402b3c8bdafdaa34f2013d9ccf..c699396b660f8646091c951505975c6ffba86b88 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 set -e
 
index 6aae78873615104ce8f9b06976dcf50880edff0b..013d0b10b3de5b6610e1444d2cfefd85d6451b5a 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 set -e
 
index 7eaf83203bd1c98b51eca50049f510af8f4bd6bf..011f9539016cfb44aa1503836dc0412efc6e8578 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 #
 # multi-dump.sh
index e89e9ab90a7c22dfe6992707622a6512a3419445..eacaea9ab625bc595dcd2865ffc8d38a59dcbd21 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 original_image=
 hosts=
index 25de4648398d62aef955c92c3d60a88b26aff6d3..ea7d8653ae0d1196e6c75d41ccc8bb0085c73c5d 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 do_map() {
        # Read /etc/rbdtab to create non-existant mapping
index 0fb4d2726a8ed180118ed84fd45dbf962816d1f9..935867daeb3a39ac25e6b357d15840f19b4ae664 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 # This can be run from e.g. the senta machines which have docker available. You
 # may need to run this script with sudo.
index 40b5038c9c133e1fbe6cdb4c3010f9564e4803e2..da31b69b1fd0043891f1001acc6b0b0da9b29212 100755 (executable)
@@ -1,4 +1,5 @@
-#!/bin/bash -ex
+#!/usr/bin/env bash
+set -ex
 
 while true; do
     ./ceph daemon osd.0 config set bdev_inject_crash 2
index 96b2235c7fab15ef5b93890b91719597e01634a0..401d09a9ef64b278b6de70dc2462fd7a3a67ccb6 100755 (executable)
@@ -1,4 +1,4 @@
-#! /bin/bash
+#! /usr/bin/env bash
 
 shopt -s nullglob
 
index 62786f2207bfe775839fe0069efa572f001c44bc..f2d74aa82f443f6aa2b31e1614816ecaa807be7f 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 function die() {
     echo $@ >&2
index 30a6044a86ec6548a79a4375c6ff59c1960f0220..416a7e7423ce3e0540eb6ff4a44bb894bdac2735 100755 (executable)
@@ -1,4 +1,4 @@
-#! /bin/bash
+#!/usr/bin/env bash
 
 # copy a linear file from srcFile to destination disk in a loop until writeSize MBs is written
 # destinationDisk is a SMR Host Aware Disk eg. /dev/sdb
index f35437c5d7c2f6b9c5243907ee3b22efb6c7f78c..1ff2695c6cebeda1751439caf507cb569d815229 100755 (executable)
@@ -1,4 +1,4 @@
-#! /bin/bash
+#! /usr/bin/env bash
 
 # copy a linear file from srcFile to destination SMRDisk in a loop until writeSize MBs is written
 # SMRDisk is the SMR Host Aware / Host Managed Disk eg. /dev/sdb
index ee231443fa9a466489d7f14dda9279c98cf531ff..31e955da756337f6ee29e9db2a17c8a95a550d2c 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 set -e
 name=`echo $0 | sed 's/\//_/g'`
@@ -9,4 +9,4 @@ iozone -c -e -s 1024M -r 16K -t 1 -F f1 -i 0 -i 1
 iozone -c -e -s 1024M -r 1M -t 1 -F f2 -i 0 -i 1
 iozone -c -e -s 10240M -r 1M -t 1 -F f3 -i 0 -i 1
 
-cd ..
\ No newline at end of file
+cd ..
index 4324a72b6901515077e70c931d6423f8cc64ade5..1e9409202d5e420f6e951e148cf465580d6391ee 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 set -e
 name=`echo $0 | sed 's/\//_/g'`
index 6ae1900612d8570f1dd580d53b64579bb4188ad1..b089c728bb919c7a3e1995d4c3873ce79cc6a4bf 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 source $(dirname $0)/../detect-build-env-vars.sh
 
index 6ddbd431a10b01331169ec33aef9b4388e8ad89a..9118de5f37ed060293ed1ae62ea059712cfe630d 100644 (file)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 if [ -n "$CEPH_BUILD_DIR" ] && [ -n "$CEPH_ROOT" ] && [ -n "$CEPH_BIN" ] && [ -n "$CEPH_LIB" ]; then
   echo "Enivronment Variables Already Set"
index f66911d70d1d1de25f0d1e6b219b6333171e6370..d36a3b760d9a71b4aa51045c5cebf0023e79dd69 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Copyright (C) 2014, 2015 Red Hat <contact@redhat.com>
 #
index d0319fe84db7dea43b33fc05fbb3bf08be2e971a..6d0111367b14ee92685b235520501d3da0112d60 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Copyright (C) 2014 Red Hat <contact@redhat.com>
 #
index f94c1fd64da1f1da4024aa5e5703f6811a5ecb8e..d49186cd6d212ce83a3e6105ca2d3cc36ae59ff5 100755 (executable)
@@ -1,12 +1,11 @@
-#!/bin/bash -e
+#!/usr/bin/env bash
+set -e
 
 source $(dirname $0)/../detect-build-env-vars.sh
 source $CEPH_ROOT/qa/standalone/ceph-helpers.sh
 
 dir=$1
 
-set -e
-
 tmp1=`mktemp /tmp/typ-XXXXXXXXX`
 tmp2=`mktemp /tmp/typ-XXXXXXXXX`
 tmp3=`mktemp /tmp/typ-XXXXXXXXX`
index 6f84181ecf45ddb0634625809d36252e7ecc4249..559ac524d7009880c758a68bf24662202dacf8eb 100755 (executable)
@@ -1,4 +1,5 @@
-#!/bin/bash -ex
+#!/usr/bin/env bash
+set -ex
 
 BDIR=`pwd`
 
index ee0bd26223e2d5d16729bb1ac625d0e21a7a3222..462117ec1e093450ebda54d039ddb976ecea5561 100755 (executable)
@@ -1,4 +1,5 @@
-#!/bin/bash -e
+#!/usr/bin/env bash
+set -e
 
 source $(dirname $0)/../detect-build-env-vars.sh
 
@@ -6,8 +7,6 @@ source $(dirname $0)/../detect-build-env-vars.sh
 
 dir=$CEPH_ROOT/ceph-object-corpus
 
-set -e
-
 failed=0
 numtests=0
 pids=""
index 353c4d45a03fd132d7e12565aab61199876ffa97..91e9cf913532f0bcbe4a9e715a3ea485a1670b13 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Copyright (C) 2014,2015,2017 Red Hat <contact@redhat.com>
 #
index d5bb671138c54405b1b295e4ba6b589617ef2d64..8d47e8fb3164ad786dd89d62be65a6e125fa4890 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 # vim: ts=8 sw=2 smarttab
 #
 # run_seed_to.sh - Run ceph_test_filestore_idempotent_sequence up until an 
index 39a3f8fd0016bd18ce7b89cc885ed92db6645aa4..49399ebc32ae0bbf5c7a4517a4743d78c8a6904b 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 . "`dirname $0`/test-rgw-common.sh"
 . "`dirname $0`/test-rgw-meta-sync.sh"
index 20f2e0da05c9399600171e934c902fccdc1a638d..0f8918f213f3cc93b82e6bbf56d7684a9b41f4b2 100644 (file)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 rgw_flags="--debug-rgw=20 --debug-ms=1"
 
index e510c6285b5aecad0528c26bc97a9ab38c612d41..18f425298e24e679592a62995b41a1bf6393b2c0 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 . "`dirname $0`/test-rgw-common.sh"
 
index 4362cda9fe7c86fd7f01dc8e3ab40f1a84c9c867..94beef95508fe100ad3edc30ed913398305b4af6 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 [ $# -lt 1 ] && echo "usage: $0 <num-clusters>" && exit 1
 
index 3bd27ab9220b77d633df177a26dd1245589d34f7..21913bfc513851fdbb7837272014b88178bfaee5 100755 (executable)
@@ -1,4 +1,5 @@
-#!/bin/bash -ex
+#!/usr/bin/env bash
+set -ex
 
 # this should be run from the src directory in the ceph.git
 
index a1ae944238224cfec4992a579e051083e28c5cfa..7c856d609841ba474a8494c019c98b2824f6c28b 100755 (executable)
@@ -1,4 +1,5 @@
-#!/bin/bash -ex
+#!/usr/bin/env bash
+set -ex
 
 # this should be run from the src directory in the ceph.git
 
index fb5da0d876ade598fd738241a9ae83ba2ec89b0b..3765b7e690db59e706767890b58b86899b83e091 100755 (executable)
@@ -1,4 +1,5 @@
-#!/bin/bash -ex
+#!/usr/bin/env bash
+set -ex
 
 # this should be run from the src directory in the ceph.git (when built with
 # automake) or cmake build directory
index df6cbf56bef02f4e83483eba711b12b8c4d6ee38..5d7d4635beee7aa1bb8c9713189f2c585005f41d 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 [ -z $ITERATIONS ] && ITERATIONS=10
 
index 5ab89f1b93f6176f7aac934da61f33390e202454..1fea1f9fdf947c307f3989830bce5bf1b34abaa0 100755 (executable)
@@ -1,4 +1,5 @@
-#!/bin/bash -x
+#!/usr/bin/env bash
+set -x
 
 #
 # test_common.sh
index 837fd0a54b227ed7316ffb92061fe92b3c3769c3..2a297f9f3c30d7cdfcff5f2f755883746e72d38d 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 
 #Generic test_crush_bucket  test
index 98003aaf6d0aad3ae7a38ff5bf6f7b7606503402..04efcb2ac90352c30f46a9ea8db145c4b39e79b5 100644 (file)
@@ -1,4 +1,5 @@
-#!/bin/bash -x
+#!/usr/bin/env bash
+set -x
 
 #
 # Runs the synthetic client
index 4a976c03c3968e133040500f36a502e2632af3d7..43959bb887d596ff9452993d914e760e625787e0 100755 (executable)
@@ -1,4 +1,5 @@
-#!/bin/bash -x
+#!/usr/bin/env bash
+set -x
 
 #
 # Test the lost object logic
index b76fa9b64a6e13840a8c43df5aaccdd9984e1ff4..424e274866d77bde3998404111b851a4f8b60ec0 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash 
+#!/usr/bin/env bash
 
 #
 # test pidfile here 
index 613e205f813d54736df075a4fd88c82955aba6cb..54abf157299cf357fb683a851faf2d5e09a58413 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 
 #Generic create pool use crush rule  test
index 68143508c15b8b9d2766a7011f71f4ee263f5b02..167becb25dfbb560e13b9fa18852eda102d9c8e3 100755 (executable)
@@ -1,4 +1,5 @@
-#!/bin/bash -x
+#!/usr/bin/env bash
+set -x
 
 #
 # Test pools
index 37e8ebd99283be9e5d2ee752a5d0baea1ea78f0f..cb7dc776756184f978445b275d3450d5edee930e 100755 (executable)
@@ -1,4 +1,5 @@
-#!/bin/bash -x
+#!/usr/bin/env bash
+set -x
 
 #
 # Generic read/write from object store test
index 4fdedd5cf68fc5d2a3e3b2928ec20dbd5ea29499..396801ebd29182249faee70c45ed5f907674053c 100755 (executable)
@@ -1,4 +1,5 @@
-#!/bin/bash -x
+#!/usr/bin/env bash
+set -x
 
 #
 # Add some objects to the data PGs, and then test splitting those PGs
index db4ee9c253458b884722f749601d99c96c630b20..459a180412448c7ed803168e0b4c669f080d1127 100755 (executable)
@@ -1,4 +1,5 @@
-#!/bin/bash -e
+#!/usr/bin/env bash
+set -e
 
 source $(dirname $0)/detect-build-env-vars.sh
 
index 35e8483fea07337d8ee1ad9b5d43b89fe69c7b45..948a21e241b2bb19ff155536a0c7cb3d77dc8db8 100755 (executable)
@@ -1,4 +1,5 @@
-#!/bin/bash -x
+#!/usr/bin/env bash
+set -x
 
 #
 # Creates some unfound objects and then tests finding them.
index 235a81fb4675e4d8ae9a53091dea54b462290676..7bd3dbe338dd13358a2665cddb15e97657a363bc 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Copyright (C) 2013 Cloudwatt <libre.licensing@cloudwatt.com>
 # Copyright (C) 2015 Red Hat <contact@redhat.com>
index a0b808283f741b05dece1854b07c544d7699c0c9..b3caafbbda1b5bded3bea8127d455217d13b0e17 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 #  ceph-lazy : Be efficient, be lazy !
 #
index e2fd73cf302105ea394b8ea63d0256f6c525eaa0..5adfacdc21beaaa62593cfc76997d5485a87b119 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Copyright (C) 2015 Red Hat <contact@redhat.com>
 #
index 4a0d3fc9da2ecb08af259f926ccc807ada757026..187bcd08058395adf58b5c4c8eba65f1ad8b333a 100644 (file)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 # file: common_h
 #
 # Copyright (C) 2015 Ubuntu Kylin
index c8e97598b6803997dca5160fc56479215018461d..d72c6be707e5cde834e7b1a61610b7f532879cfd 100644 (file)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 # file: database_h
 #
 # Copyright (C) 2015 Ubuntu Kylin
index edfaeafd82803e86990fd67138ac3d7db0bc96eb..e268eafa7373872fc69c79023ed88c2259c2195a 100644 (file)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 # file: epoch_h
 #
 # Copyright (C) 2015 Ubuntu Kylin
index 02969621d9cf7f5068e2bdc688ddf9d6ab9e1f0e..55c21d2573a91c1847da95ce89e2583cda8a09aa 100644 (file)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 # file: metadata_h
 #
 # Copyright (C) 2015 Ubuntu Kylin
index f3e2ff34491a132c5c59083165b4d0601d38e470..b4b80be8ab6b66d5b099f67a09132186f2905cb9 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 # file: osd_job
 #
 # Copyright (C) 2015 Ubuntu Kylin
index b24992d6c9c4856fa052d3df709caf1dc29b7cba..70f4e7c1dc6f19dbf696e5940f4f3b54fa3b0689 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 # file: rbd-recover-tool
 #
 # Copyright (C) 2015 Ubuntu Kylin
index 80b0a8cd5883083e8310eff1d14e26ea7c5e6ac8..876b47b906fe6d6e337e86e12926701749086322 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Copyright (C) 2015 Ubuntu Kylin
 #
index c7680b9558b941d1ec931478defa9128b39a630f..a99c5088a56d359be011f101914c837d621703fa 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Copyright (C) 2016 <contact@redhat.com>
 #
index 88c35d5e96fd6f3250462261c4bd88aaa29d6025..649bcb002405061ad4c24df4dbbe464d1352c843 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 # abort on failure
 set -e
index 6a69271688732653d25b957c948f42b519d8641f..746234b1736532ba55e9f7642e49ae043ad3c805 100644 (file)
@@ -1,4 +1,4 @@
-#! /bin/bash
+#! /usr/bin/env bash
 
 ### BEGIN INIT INFO
 # Provides:       ceph ceph-mon ceph-osd