Skip to content

Commit 3301275

Browse files
author
MikaelUrankar
committed
Don't assume /bin/bash is available on every system.
1 parent d69ada6 commit 3301275

9 files changed

+9
-9
lines changed

build.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
#set -x
44
set -e

build_sysroot/build_sysroot.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
# Requires the CHANNEL env var to be set to `debug` or `release.`
44

build_sysroot/prepare_sysroot_src.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
set -e
33
cd $(dirname "$0")
44

cargo.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
if [ -z $CHANNEL ]; then
44
export CHANNEL='debug'

clean_all.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash --verbose
1+
#!/usr/bin/env bash --verbose
22
set -e
33

44
rm -rf target/ build_sysroot/{sysroot/,sysroot_src/,target/,Cargo.lock} perf.data{,.old}

prepare.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash --verbose
1+
#!/usr/bin/env bash --verbose
22
set -e
33

44
source prepare_build.sh

prepare_build.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash --verbose
1+
#!/usr/bin/env bash --verbose
22
set -e
33

44
./build_sysroot/prepare_sysroot_src.sh

rustup.sh

+1-1
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

test.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
# TODO(antoyo): rewrite to cargo-make (or just) or something like that to only rebuild the sysroot when needed?
44

0 commit comments

Comments
 (0)