[Mesa-dev] [PATCH 23/37] gallium/tools: do not hardcode bash location

Emil Velikov emil.l.velikov at gmail.com
Thu Feb 23 17:13:50 UTC 2017


It is not guaranteed to be in /bin

Signed-off-by: Emil Velikov <emil.velikov at collabora.com>
---
 src/gallium/tools/addr2line.sh       | 2 +-
 src/gallium/tools/trace/tracediff.sh | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/gallium/tools/addr2line.sh b/src/gallium/tools/addr2line.sh
index 34dec14271..8d7b9cb9d9 100755
--- a/src/gallium/tools/addr2line.sh
+++ b/src/gallium/tools/addr2line.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 # This script processes symbols output by Gallium using glibc to human-readable function names
 
 lastbin=
diff --git a/src/gallium/tools/trace/tracediff.sh b/src/gallium/tools/trace/tracediff.sh
index c7827c0ff1..dccb7a3d51 100755
--- a/src/gallium/tools/trace/tracediff.sh
+++ b/src/gallium/tools/trace/tracediff.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 ##########################################################################
 #
 # Copyright 2011 Jose Fonseca
-- 
2.11.0



More information about the mesa-dev mailing list