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

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

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

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

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

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

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

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

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

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

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

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

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

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

+1-1
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-s390x-linux/build-s390x-toolchain.sh

+1-1
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-various-1/build-rumprun.sh

+1-1
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
trap - ERR
1616
kill $PING_LOOP_PID
1717
rm /tmp/build.log

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

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

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ exit 1
1313
trap "$on_err" ERR
1414
bash -c "while true; do sleep 30; echo \$(date) - building ...; done" &
1515
PING_LOOP_PID=$!
16-
$@ &> /tmp/build.log
16+
"$@" &> /tmp/build.log
1717
rm /tmp/build.log
1818
trap - ERR
1919
kill $PING_LOOP_PID

src/ci/docker/scripts/emscripten.sh

+1-1
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
trap - ERR
1616
kill $PING_LOOP_PID
1717
rm -f /tmp/build.log

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ exit 1
1919
trap "$on_err" ERR
2020
bash -c "while true; do sleep 30; echo \$(date) - building ...; done" &
2121
local ping_loop_pid=$!
22-
$@ &> /tmp/build.log
22+
"$@" &> /tmp/build.log
2323
trap - ERR
2424
kill $ping_loop_pid
2525
set -x

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ exit 1
2020
trap "$on_err" ERR
2121
bash -c "while true; do sleep 30; echo \$(date) - building ...; done" &
2222
PING_LOOP_PID=$!
23-
$@ &> /tmp/build.log
23+
"$@" &> /tmp/build.log
2424
trap - ERR
2525
kill $PING_LOOP_PID
2626
rm /tmp/build.log

src/ci/docker/scripts/musl.sh

+2-2
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
trap - ERR
1616
kill $PING_LOOP_PID
1717
rm /tmp/build.log
@@ -33,7 +33,7 @@ if [ ! -d $MUSL ]; then
3333
fi
3434

3535
cd $MUSL
36-
./configure --enable-optimize --enable-debug --disable-shared --prefix=/musl-$TAG $@
36+
./configure --enable-optimize --enable-debug --disable-shared --prefix=/musl-$TAG "$@"
3737
if [ "$TAG" = "i586" -o "$TAG" = "i686" ]; then
3838
hide_output make -j$(nproc) AR=ar RANLIB=ranlib
3939
else

src/ci/init_repo.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ modules=($modules)
5353
use_git=""
5454
urls="$(git config --file .gitmodules --get-regexp '\.url$' | cut -d' ' -f2)"
5555
urls=($urls)
56-
for i in ${!modules[@]}; do
56+
for i in "${!modules[@]}"; do
5757
module=${modules[$i]}
5858
if [[ " $included " = *" $module "* ]]; then
5959
commit="$(git ls-tree HEAD $module | awk '{print $3}')"

0 commit comments

Comments
 (0)