aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoryvt <i@yvt.jp>2021-06-14 00:51:06 +0900
committeryvt <i@yvt.jp>2021-06-14 22:06:09 +0900
commit262a41dd2a56f6a601f0c178507fc9cf18f7c34f (patch)
treed492487d9e2a898ce85c6cae1e84413cccc3da9c
parent8ee8700c824ca54bf4973555a57543c04cc8b37f (diff)
downloadservo-262a41dd2a56f6a601f0c178507fc9cf18f7c34f.tar.gz
servo-262a41dd2a56f6a601f0c178507fc9cf18f7c34f.zip
Use `#!/usr/bin/env bash` in shell scripts for NixOS compatibility
Signed-off-by: yvt <i@yvt.jp>
-rwxr-xr-xetc/jsdefine2
-rwxr-xr-xetc/rustdoc-with-private2
-rwxr-xr-xetc/taskcluster/mock.py2
-rwxr-xr-xetc/taskcluster/simulate_github_events.py2
-rw-r--r--python/tidy/servo_tidy_tests/shell_tidy.sh2
-rwxr-xr-xsupport/android/openssl.sh2
6 files changed, 6 insertions, 6 deletions
diff --git a/etc/jsdefine b/etc/jsdefine
index 67419fc7653..d58aa5f981c 100755
--- a/etc/jsdefine
+++ b/etc/jsdefine
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
#
# Handy tool for extracting #defines from jsapi.h. For example:
# ./jsdefine %x JSCLASS_GLOBAL_FLAGS
diff --git a/etc/rustdoc-with-private b/etc/rustdoc-with-private
index ea39eb82e5a..87985da1484 100755
--- a/etc/rustdoc-with-private
+++ b/etc/rustdoc-with-private
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# Emit documentation for private items so it is easier to look
# up internal definitions.
diff --git a/etc/taskcluster/mock.py b/etc/taskcluster/mock.py
index 14b52720db7..0bce7891876 100755
--- a/etc/taskcluster/mock.py
+++ b/etc/taskcluster/mock.py
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# Copyright 2018 The Servo Project Developers. See the COPYRIGHT
# file at the top-level directory of this distribution.
diff --git a/etc/taskcluster/simulate_github_events.py b/etc/taskcluster/simulate_github_events.py
index 95faa5b34ae..c99436b9106 100755
--- a/etc/taskcluster/simulate_github_events.py
+++ b/etc/taskcluster/simulate_github_events.py
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
diff --git a/python/tidy/servo_tidy_tests/shell_tidy.sh b/python/tidy/servo_tidy_tests/shell_tidy.sh
index e38358fc3b6..2a887abf206 100644
--- a/python/tidy/servo_tidy_tests/shell_tidy.sh
+++ b/python/tidy/servo_tidy_tests/shell_tidy.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
#
# Tests tidy for shell scripts.
diff --git a/support/android/openssl.sh b/support/android/openssl.sh
index 5877e3f4a8a..db57fa6ddf1 100755
--- a/support/android/openssl.sh
+++ b/support/android/openssl.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# Cross-compile environment for Android on ARMv7 and x86
#
# Contents licensed under the terms of the OpenSSL license