]> code.delx.au - pulseaudio/commitdiff
bootstrap.sh: use /usr/bin/env to find bash
authorRyan Lortie <desrt@desrt.ca>
Tue, 10 Dec 2013 18:26:17 +0000 (13:26 -0500)
committerTanu Kaskinen <tanu.kaskinen@linux.intel.com>
Fri, 13 Dec 2013 11:57:41 +0000 (13:57 +0200)
bootstrap.sh uses some non-POSIX features of bash, so we can't use
/bin/sh.  Unlike /bin/sh, bash can be installed anywhere in the path, so
we should use /usr/bin/env to find it.

This helps systems that have bash in /usr/local/bin, for example.

bootstrap.sh

index 8f4d3dce69fad1a19c44ffcafbae0ff9f1a90269..08e0fa4c6d9d994f64a72e7392d0142a6f339006 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 # This file is part of PulseAudio.
 #