Skip to content

Commit be04c39

Browse files
0xPoepietroalbini
authored andcommitted
Fix shell check warning
Signed-off-by: hi-rustin <[email protected]>
1 parent 687a407 commit be04c39

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
@@ -590,7 +590,7 @@ check_help_for() {
590590
esac
591591

592592
for _arg in "$@"; do
593-
if ! "$_cmd" --help $_category | grep -q -- "$_arg"; then
593+
if ! "$_cmd" --help "$_category" | grep -q -- "$_arg"; then
594594
return 1
595595
fi
596596
done

0 commit comments

Comments
 (0)