ctdb-tests: Improve portability by not using /bin/bash directly
authorMartin Schwenke <martin@meltin.net>
Sun, 1 Jul 2018 03:30:06 +0000 (13:30 +1000)
committerMartin Schwenke <martins@samba.org>
Sat, 28 Jul 2018 01:50:10 +0000 (03:50 +0200)
FreeBSD and others do not have /bin/bash, so use "/usr/bin/env bash"
for better flexibility.

There are still many integration tests that use /bin/bash but this at
least lets FreeBSD start running tests.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=13520

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
ctdb/tests/run_tests.sh

index f1268a5f4046b8c1e2151fd94b09ea8dc8b70de5..7e0b26deb6656d3dfb46dd928ee38419736e4958 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 usage() {
     cat <<EOF