Skip to content

Commit 539cf09

Browse files
authored
fix: Adjust shebang to point to /usr/bin/env bash (#251)
It's recommended to point the shebang for bash scripts to `/usr/bin/env bash` instead of `/bin/bash` to account for systems that may have a non-standard binary layout, like, e.g., NixOS. This patch adjust the install scripts to properly handle these cases.
1 parent 3dd4ec5 commit 539cf09

File tree

10 files changed

+10
-10
lines changed

10 files changed

+10
-10
lines changed

scripts/benchmark.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
#!/bin/bash
2+
#!/usr/bin/env bash
33

44
# Compile the benchmark
55
mvn test-compile

scripts/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
set -e
44

scripts/download_linux_jdk.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
# Download a copy of linux JDK in jdks/linux
33

44
set -e

scripts/download_mac_jdk.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
# Download a copy of mac JDK in jdks/mac
33

44
set -e

scripts/download_windows_jdk.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
# Download a copy of windows JDK in jdks/windows
33

44
set -e

scripts/format.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
# Grab root directory to help with creating an absolute path for changed files.
44
root_dir="$(git rev-parse --show-toplevel)"

scripts/gen_proto.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
protoc -I=src/main/protobuf --java_out=src/main/java src/main/protobuf/build.proto
33
protoc -I=src/main/protobuf --java_out=src/main/java src/main/protobuf/analysis.proto
44
protoc -I=src/main/protobuf --java_out=src/main/java src/main/protobuf/analysis_v2.proto

scripts/link_linux.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
# Create self-contained copy of java in dist/linux
33

44
set -e

scripts/link_mac.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
# Create self-contained copy of java in dist/mac
33

44
set -e

scripts/link_windows.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
# Create self-contained copy of java in dist/windows
33

44
set -e

0 commit comments

Comments
 (0)