about summary refs log tree commit diff
diff options
context:
space:
mode:
authorCorey Farwell <coreyf@rwell.org>2017-12-03 17:43:43 -0500
committerGitHub <noreply@github.com>2017-12-03 17:43:43 -0500
commit82ee2094927dbf969a9b37582e54c1fdf6358b17 (patch)
tree0475bcdd83e7352bd37c4e42798b487b90fefd64
parentf2b11f30b2946119c23594bc2b3bec3c38d3ae9a (diff)
parenta4b4a733285259261f421ae7de42399315a7ec94 (diff)
downloadrust-82ee2094927dbf969a9b37582e54c1fdf6358b17.tar.gz
rust-82ee2094927dbf969a9b37582e54c1fdf6358b17.zip
Rollup merge of #45957 - dereckson:unix-agnosticity, r=shepmaster
Use more convenient and UNIX-agnostic shebang

When using bash-specific features, scripts using env to call bash
are more convenient, as bash be installed in different places
according the OS.
-rw-r--r--src/etc/test-float-parse/runtests.py2
-rwxr-xr-xsrc/test/ui/update-all-references.sh2
-rwxr-xr-xsrc/test/ui/update-references.sh2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/etc/test-float-parse/runtests.py b/src/etc/test-float-parse/runtests.py
index 75c92b9b15c..d520c9bd5c3 100644
--- a/src/etc/test-float-parse/runtests.py
+++ b/src/etc/test-float-parse/runtests.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python2.7
+#!/usr/bin/env python2.7
 #
 # Copyright 2015 The Rust Project Developers. See the COPYRIGHT
 # file at the top-level directory of this distribution and at
diff --git a/src/test/ui/update-all-references.sh b/src/test/ui/update-all-references.sh
index ddd69c399a5..bfc6f923f9d 100755
--- a/src/test/ui/update-all-references.sh
+++ b/src/test/ui/update-all-references.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Copyright 2015 The Rust Project Developers. See the COPYRIGHT
 # file at the top-level directory of this distribution and at
diff --git a/src/test/ui/update-references.sh b/src/test/ui/update-references.sh
index aa99d35f7aa..b9ded7d1e95 100755
--- a/src/test/ui/update-references.sh
+++ b/src/test/ui/update-references.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Copyright 2015 The Rust Project Developers. See the COPYRIGHT
 # file at the top-level directory of this distribution and at