Skip to content

Commit a1af001

Browse files
committed
fix shellcheck error of SC2068
1 parent ce4c124 commit a1af001

File tree

21 files changed

+24
-24
lines changed

21 files changed

+24
-24
lines changed

compiler/rustc_codegen_cranelift/scripts/cargo.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ cmd=$1
1010
shift || true
1111

1212
if [[ "$cmd" = "jit" ]]; then
13-
cargo +${TOOLCHAIN} rustc $@ -- --jit
13+
cargo +${TOOLCHAIN} rustc "$@" -- --jit
1414
else
15-
cargo +${TOOLCHAIN} $cmd $@
15+
cargo +${TOOLCHAIN} $cmd "$@"
1616
fi

compiler/rustc_codegen_cranelift/test.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ set -e
33

44
export RUSTFLAGS="-Zrun_dsymutil=no"
55

6-
./build.sh --without-sysroot $@
6+
./build.sh --without-sysroot "$@"
77

88
rm -r target/out || true
99

1010
scripts/tests.sh no_sysroot
1111

12-
./build.sh $@
12+
./build.sh "$@"
1313

1414
scripts/tests.sh base_sysroot
1515
scripts/tests.sh extended_sysroot

src/ci/docker/host-x86_64/disabled/dist-x86_64-dragonfly/build-toolchain.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ exit 1
1717
trap "$on_err" ERR
1818
bash -c "while true; do sleep 30; echo \$(date) - building ...; done" &
1919
PING_LOOP_PID=$!
20-
$@ &> /tmp/build.log
20+
"$@" &> /tmp/build.log
2121
trap - ERR
2222
kill $PING_LOOP_PID
2323
set -x

src/ci/docker/host-x86_64/disabled/dist-x86_64-haiku/build-toolchain.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ exit 1
2222
trap "$on_err" ERR
2323
bash -c "while true; do sleep 30; echo \$(date) - building ...; done" &
2424
PING_LOOP_PID=$!
25-
$@ &> /tmp/build.log
25+
"$@" &> /tmp/build.log
2626
trap - ERR
2727
kill $PING_LOOP_PID
2828
set -x

src/ci/docker/host-x86_64/dist-aarch64-linux/build-toolchains.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ exit 1
1111
trap "$on_err" ERR
1212
bash -c "while true; do sleep 30; echo \$(date) - building ...; done" &
1313
PING_LOOP_PID=$!
14-
$@ &> /tmp/build.log
14+
"$@" &> /tmp/build.log
1515
rm /tmp/build.log
1616
trap - ERR
1717
kill $PING_LOOP_PID

src/ci/docker/host-x86_64/dist-arm-linux/build-toolchains.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ exit 1
1212
trap "$on_err" ERR
1313
bash -c "while true; do sleep 30; echo \$(date) - building ...; done" &
1414
PING_LOOP_PID=$!
15-
$@ &> /tmp/build.log
15+
"$@" &> /tmp/build.log
1616
rm /tmp/build.log
1717
trap - ERR
1818
kill $PING_LOOP_PID

src/ci/docker/host-x86_64/dist-armhf-linux/build-toolchains.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ exit 1
1212
trap "$on_err" ERR
1313
bash -c "while true; do sleep 30; echo \$(date) - building ...; done" &
1414
PING_LOOP_PID=$!
15-
$@ &> /tmp/build.log
15+
"$@" &> /tmp/build.log
1616
rm /tmp/build.log
1717
trap - ERR
1818
kill $PING_LOOP_PID

src/ci/docker/host-x86_64/dist-armv7-linux/build-toolchains.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ exit 1
1212
trap "$on_err" ERR
1313
bash -c "while true; do sleep 30; echo \$(date) - building ...; done" &
1414
PING_LOOP_PID=$!
15-
$@ &> /tmp/build.log
15+
"$@" &> /tmp/build.log
1616
rm /tmp/build.log
1717
trap - ERR
1818
kill $PING_LOOP_PID

src/ci/docker/host-x86_64/dist-powerpc-linux/build-powerpc-toolchain.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ exit 1
1111
trap "$on_err" ERR
1212
bash -c "while true; do sleep 30; echo \$(date) - building ...; done" &
1313
PING_LOOP_PID=$!
14-
$@ &> /tmp/build.log
14+
"$@" &> /tmp/build.log
1515
rm /tmp/build.log
1616
trap - ERR
1717
kill $PING_LOOP_PID

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ exit 1
99
trap "$on_err" ERR
1010
bash -c "while true; do sleep 30; echo \$(date) - building ...; done" &
1111
PING_LOOP_PID=$!
12-
$@ &> /tmp/build.log
12+
"$@" &> /tmp/build.log
1313
trap - ERR
1414
kill $PING_LOOP_PID
1515
set -x

0 commit comments

Comments
 (0)