git » libfiu » commit 6007206

Use /usr/bin/env to run bash

author Alberto Bertogli
2009-07-02 23:39:07 UTC
committer Alberto Bertogli
2009-07-02 23:39:07 UTC
parent 76873020dcac7d8979ffd8e12c67a40b116c1623

Use /usr/bin/env to run bash

fiu-run and fiu-ctrl assume bash is at /bin, which is not necessarily
correct. This patch fixes that by using /usr/bin/env to run it, which is
more reliable.

Signed-off-by: Alberto Bertogli <albertito@blitiri.com.ar>

preload/run/fiu-run.in +1 -1
utils/fiu-ctrl +1 -1

diff --git a/preload/run/fiu-run.in b/preload/run/fiu-run.in
index 8b97267..11a5d87 100644
--- a/preload/run/fiu-run.in
+++ b/preload/run/fiu-run.in
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 # This script aims to make the use of the fiu_run_preload library a little
 # easier by providing a more friendly user interface, and abstracting the
diff --git a/utils/fiu-ctrl b/utils/fiu-ctrl
index d2feeac..130af8f 100755
--- a/utils/fiu-ctrl
+++ b/utils/fiu-ctrl
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 # This scripts present a friendly interface to the fiu remote control
 # capabilities. Currently, it supports only the named pipe method (the only