File tree Expand file tree Collapse file tree 6 files changed +11
-8
lines changed Expand file tree Collapse file tree 6 files changed +11
-8
lines changed Original file line number Diff line number Diff line change 82
82
sh ./ci/raw_init.sh
83
83
- name : Run shell checks
84
84
run : |
85
- shellcheck -s dash -- rustup-init.sh
86
- git ls-files -- '*.sh' | xargs shellcheck -s dash -e SC1090
87
- git ls-files -- '*.bash' | xargs shellcheck -s bash -e SC1090
85
+ shellcheck -x - s dash -- rustup-init.sh
86
+ git ls-files -- '*.sh' | xargs shellcheck -x -s dash
87
+ git ls-files -- '*.bash' | xargs shellcheck -x -s bash
88
88
- name : Run formatting checks
89
89
run : |
90
90
cargo fmt --all --check
Original file line number Diff line number Diff line change 82
82
sh ./ci/raw_init.sh
83
83
- name : Run shell checks
84
84
run : |
85
- shellcheck -s dash -- rustup-init.sh
86
- git ls-files -- '*.sh' | xargs shellcheck -s dash -e SC1090
87
- git ls-files -- '*.bash' | xargs shellcheck -s bash -e SC1090
85
+ shellcheck -x - s dash -- rustup-init.sh
86
+ git ls-files -- '*.sh' | xargs shellcheck -x -s dash
87
+ git ls-files -- '*.bash' | xargs shellcheck -x -s bash
88
88
- name : Run formatting checks
89
89
run : |
90
90
cargo fmt --all --check
Original file line number Diff line number Diff line change 1
- #! /bin/bash
1
+ #! /bin/bash
2
2
3
3
set -ex
4
4
@@ -26,6 +26,7 @@ echo "Install Rustup using ./rustup-init.sh"
26
26
27
27
sh rustup-init.sh --default-toolchain=stable --profile=minimal -y
28
28
# It's the equivalent of `source`
29
+ # shellcheck source=src/cli/self_update/env.sh
29
30
source " $HOME " /.cargo/env
30
31
31
32
echo " ========="
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
3
script_dir=$( cd " $( dirname " $0 " ) " && pwd)
4
+ # shellcheck source=ci/shared.bash
4
5
. " $script_dir /shared.bash"
5
6
6
7
set -e
Original file line number Diff line number Diff line change 3
3
set -ex
4
4
5
5
sh ./rustup-init.sh --default-toolchain none -y
6
+ # shellcheck source=src/cli/self_update/env.sh
6
7
. " $HOME " /.cargo/env
7
8
rustup -Vv
Original file line number Diff line number Diff line change @@ -597,7 +597,7 @@ check_help_for() {
597
597
esac
598
598
599
599
for _arg in " $@ " ; do
600
- if ! " $_cmd " --help $_category | grep -q -- " $_arg " ; then
600
+ if ! " $_cmd " --help " $_category " | grep -q -- " $_arg " ; then
601
601
return 1
602
602
fi
603
603
done
You can’t perform that action at this time.
0 commit comments