Skip to content

Commit 8625029

Browse files
committed
Fix shellcheck warnings
1 parent 86411e4 commit 8625029

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

ci/install-rust.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,13 @@ if [ "$OS" = "windows" ]; then
4747
fi
4848

4949
echo "Query rust and cargo versions"
50+
command -v rustc
51+
command -v cargo
52+
command -v rustup
5053
rustc -Vv
5154
cargo -V
5255
rustup -Vv
5356
rustup show
54-
which rustc
55-
which cargo
56-
which rustup
5757

5858
echo "Generate lockfile"
5959
N=5

ci/run-docker.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ build_switch() {
6262
kvm=""
6363
fi
6464

65-
cp "$(which rustup)" "$(rustc --print sysroot)/bin"
65+
cp "$(command -v rustup)" "$(rustc --print sysroot)/bin"
6666

6767
docker run \
6868
--rm \

0 commit comments

Comments
 (0)