]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
scripts: fix bash path in shebangs (part 2) 17955/head
authorAlan Somers <asomers@gmail.com>
Mon, 25 Sep 2017 23:20:40 +0000 (17:20 -0600)
committerAlan Somers <asomers@gmail.com>
Mon, 25 Sep 2017 23:20:40 +0000 (17:20 -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>
bin/git-archive-all.sh
qa/standalone/scrub/osd-recovery-scrub.sh
src/test/osd/safe-to-destroy.sh
src/test/rbd-ggate.sh
src/test/smoke.sh

index 8c292b54d522859ce03d1cc3932a14174dd37803..513b50a2c491120aaaf6e1bbd1452afb5561f26a 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash -
+#!/usr/bin/env bash
 #
 # File:        git-archive-all.sh
 #
index ef9a3318afd8f28d0c589ce37a3a090e585da72d..670ea1c328d870c946b4c4373443907a4316a453 100755 (executable)
@@ -1,4 +1,4 @@
-#! /bin/bash
+#! /usr/bin/env bash
 #
 # Copyright (C) 2017 Red Hat <contact@redhat.com>
 #
index ab12dcdfba438aeb5dc135c506c295846a3a1ef4..f03a235f7dda3de4eab917bf1f559e947121c00d 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 source $CEPH_ROOT/qa/standalone/ceph-helpers.sh
 
index 397a9ae1c709413742c34ba2f6a70e5109710264..da1217e10abcf70d4e29d48a971ccd6551347ee2 100755 (executable)
@@ -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
index 297bbc7d676616bfe90c6f387cb6ea79b608f886..1c79416cbd91c4bd4f235a83787a84c2c7360e87 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 source $CEPH_ROOT/qa/standalone/ceph-helpers.sh