about summary refs log tree commit diff
diff options
context:
space:
mode:
authorDaiki Ihara <sasurau4@gmail.com>2020-11-02 21:17:52 +0900
committerDaiki Ihara <sasurau4@gmail.com>2020-11-06 20:33:12 +0900
commit07aef9059372f1b3bf61d88bf5917e96e487d323 (patch)
tree1ad36f234b78d0ba8f561cee047882ce1a1138b5
parent21a097f17e62b6020880dc7e380b9efb3d4bce50 (diff)
downloadrust-07aef9059372f1b3bf61d88bf5917e96e487d323.tar.gz
rust-07aef9059372f1b3bf61d88bf5917e96e487d323.zip
fix shellcheck error of SC2068
-rwxr-xr-xscripts/cargo.sh4
-rwxr-xr-xtest.sh4
2 files changed, 4 insertions, 4 deletions
diff --git a/scripts/cargo.sh b/scripts/cargo.sh
index e63daa40f35..947b4a28798 100755
--- a/scripts/cargo.sh
+++ b/scripts/cargo.sh
@@ -10,7 +10,7 @@ cmd=$1
 shift || true
 
 if [[ "$cmd" = "jit" ]]; then
-cargo +${TOOLCHAIN} rustc $@ -- --jit
+cargo +${TOOLCHAIN} rustc "$@" -- --jit
 else
-cargo +${TOOLCHAIN} $cmd $@
+cargo +${TOOLCHAIN} $cmd "$@"
 fi
diff --git a/test.sh b/test.sh
index 3cdd4119d79..c6c4956e481 100755
--- a/test.sh
+++ b/test.sh
@@ -3,13 +3,13 @@ set -e
 
 export RUSTFLAGS="-Zrun_dsymutil=no"
 
-./build.sh --without-sysroot $@
+./build.sh --without-sysroot "$@"
 
 rm -r target/out || true
 
 scripts/tests.sh no_sysroot
 
-./build.sh $@
+./build.sh "$@"
 
 scripts/tests.sh base_sysroot
 scripts/tests.sh extended_sysroot