ctdb-tools: Improve portability by not using /bin/bash directly
authorMartin Schwenke <martin@meltin.net>
Sun, 1 Jul 2018 09:47:37 +0000 (19:47 +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/tools/onnode

index f94423251a83e50c4381a8bcb5b14f46d47d152d..50fc6a732d5854b72070fc7f0d9bfeacfa1f0d37 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 # Run commands on CTDB nodes.