Skip to content

Commit 2bb6323

Browse files
committed
Fix shell check warning
Signed-off-by: hi-rustin <rustin.liu@gmail.com>
1 parent 3331f34 commit 2bb6323

File tree

4 files changed

+5
-2
lines changed

4 files changed

+5
-2
lines changed

ci/cirrus-templates/script.bash

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/bin/bash
22

33
set -ex
44

@@ -26,6 +26,7 @@ echo "Install Rustup using ./rustup-init.sh"
2626

2727
sh rustup-init.sh --default-toolchain=stable --profile=minimal -y
2828
# It's the equivalent of `source`
29+
# shellcheck source=src/cli/self_update/env.sh
2930
source "$HOME"/.cargo/env
3031

3132
echo "========="

ci/fetch-rust-docker.bash

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#!/bin/bash
22

33
script_dir=$(cd "$(dirname "$0")" && pwd)
4+
# shellcheck source=ci/shared.bash
45
. "$script_dir/shared.bash"
56

67
set -e

ci/raw_init.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,6 @@
33
set -ex
44

55
sh ./rustup-init.sh --default-toolchain none -y
6+
# shellcheck source=/dev/null
67
. "$HOME"/.cargo/env
78
rustup -Vv

rustup-init.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -597,7 +597,7 @@ check_help_for() {
597597
esac
598598

599599
for _arg in "$@"; do
600-
if ! "$_cmd" --help $_category | grep -q -- "$_arg"; then
600+
if ! "$_cmd" --help "$_category" | grep -q -- "$_arg"; then
601601
return 1
602602
fi
603603
done

0 commit comments

Comments
 (0)