Skip to content

Commit f197da6

Browse files
committed
fix shellcheck error of SC2148
1 parent 5629309 commit f197da6

File tree

22 files changed

+22
-0
lines changed

22 files changed

+22
-0
lines changed

compiler/rustc_codegen_cranelift/scripts/config.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#!/usr/bin/env bash
12
set -e
23

34
unamestr=`uname`

src/ci/docker/host-x86_64/dist-powerpc64-linux/shared.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#!/bin/sh
12
hide_output() {
23
set +x
34
on_err="

src/ci/docker/host-x86_64/dist-powerpc64le-linux/shared.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#!/bin/sh
12
hide_output() {
23
set +x
34
on_err="

src/ci/docker/host-x86_64/dist-riscv64-linux/crosstool-ng.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#!/bin/sh
12
set -ex
23

34
# Mirrored from https://github.com/crosstool-ng/crosstool-ng/archive/crosstool-ng-1.24.0.tar.gz

src/ci/docker/host-x86_64/dist-various-1/install-mips-musl.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#!/bin/sh
12
set -ex
23

34
mkdir /usr/local/mips-linux-musl

src/ci/docker/host-x86_64/dist-various-1/install-mipsel-musl.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#!/bin/sh
12
set -ex
23

34
mkdir /usr/local/mipsel-linux-musl

src/ci/docker/host-x86_64/dist-various-2/shared.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#!/usr/bin/env bash
12
hide_output() {
23
{ set +x; } 2>/dev/null
34
on_err="

src/ci/docker/host-x86_64/dist-x86_64-linux/shared.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#!/bin/sh
12
hide_output() {
23
set +x
34
on_err="

src/ci/docker/scripts/android-base-apt-get.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#!/bin/sh
12
set -ex
23

34
apt-get update

src/ci/docker/scripts/android-ndk.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#!/bin/sh
12
set -ex
23

34
URL=https://dl.google.com/android/repository

src/ci/docker/scripts/android-sdk.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#!/bin/sh
12
set -ex
23

34
export ANDROID_HOME=/android/sdk

src/ci/docker/scripts/cross-apt-packages.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#!/bin/sh
12
apt-get update && apt-get install -y --no-install-recommends \
23
automake \
34
bison \

src/ci/docker/scripts/crosstool-ng-1.24.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#!/bin/sh
12
set -ex
23

34
# Mirrored from https://github.com/crosstool-ng/crosstool-ng/archive/crosstool-ng-1.24.0.tar.gz

src/ci/docker/scripts/crosstool-ng.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#!/bin/sh
12
set -ex
23

34
url="https://github.com/crosstool-ng/crosstool-ng/archive/crosstool-ng-1.22.0.tar.gz"

src/ci/docker/scripts/emscripten.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#!/bin/sh
12
set -ex
23

34
hide_output() {

src/ci/docker/scripts/make3.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#!/bin/sh
12
set -ex
23

34
curl -f https://ftp.gnu.org/gnu/make/make-3.81.tar.gz | tar xzf -

src/ci/docker/scripts/musl-toolchain.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#!/bin/sh
12
# This script runs `musl-cross-make` to prepare C toolchain (Binutils, GCC, musl itself)
23
# and builds static libunwind that we distribute for static target.
34
#

src/ci/docker/scripts/musl.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#!/bin/sh
12
set -ex
23

34
hide_output() {

src/ci/docker/scripts/rustbuild-setup.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#!/bin/sh
12
set -ex
23

34
groupadd -r rustbuild && useradd -m -r -g rustbuild rustbuild

src/ci/docker/scripts/sccache.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#!/bin/sh
12
set -ex
23

34
case "$(uname -m)" in

src/test/run-make/thumb-none-qemu/script.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#!/bin/sh
12
set -exuo pipefail
23

34
CRATE=example

src/test/run-make/x86_64-fortanix-unknown-sgx-lvi/script.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#!/bin/sh
12
set -exuo pipefail
23

34
function build {

0 commit comments

Comments
 (0)