Skip to content

Commit c88b3cd

Browse files
committed
contrib: fix check-crates.sh skip MSRV script
Signed-off-by: Yuki Kishimoto <[email protected]>
1 parent f981b73 commit c88b3cd

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

contrib/scripts/check-crates.sh

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,15 @@ skip_msrv=(
4444
for arg in "${buildargs[@]}";
4545
do
4646
# Skip the current crate if is_msrv is true and it's in the skip list
47-
if [ "$is_msrv" == true ] && [[ $arg == "${skip_msrv[*]}" ]]; then
47+
skip=false
48+
for skip_arg in "${skip_msrv[@]}";
49+
do
50+
if [ "$is_msrv" == true ] && [[ "$arg" == "$skip_arg" ]]; then
51+
skip=true
52+
break
53+
fi
54+
done
55+
if [ "$skip" == true ]; then
4856
echo "Skipping MSRV check for '$arg'"
4957
echo
5058
continue

0 commit comments

Comments
 (0)