Skip to content

Commit 883b9ef

Browse files
committed
fix: shellcheck unquoted expansion
1 parent 3022237 commit 883b9ef

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/lint.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -121,13 +121,13 @@ jobs:
121121
if [[ "${{ matrix.platform }}" == "windows-latest" ]]; then
122122
export AWS_LC_FIPS_SYS_NO_ASM=1
123123
fi
124+
EXTRA_CLIPPY_FLAG=$([ ${{ matrix.rust_version }} = 1.84.1 ] || echo -Aclippy::manual_is_multiple_of)
124125
if [[ -z "$CLIPPY_PACKAGES" ]]; then
125-
cargo clippy --workspace --all-targets --all-features -- -D warnings $([ ${{ matrix.rust_version }} = 1.84.1 ] || echo -Aclippy::manual_is_multiple_of)
126-
126+
# shellcheck disable=SC2086
127+
cargo clippy --workspace --all-targets --all-features -- -D warnings $EXTRA_CLIPPY_FLAG
127128
else
128129
# shellcheck disable=SC2086
129-
cargo clippy $CLIPPY_PACKAGES --all-targets --all-features -- -D warnings $([ ${{ matrix.rust_version }} = 1.84.1 ] || echo -Aclippy::manual_is_multiple_of)
130-
130+
cargo clippy $CLIPPY_PACKAGES --all-targets --all-features -- -D warnings $EXTRA_CLIPPY_FLAG
131131
fi
132132
133133
licensecheck:

0 commit comments

Comments
 (0)