Skip to content

Commit 34325c2

Browse files
cleanyp
1 parent f20059b commit 34325c2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/check_makefile.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,9 @@ main() (
102102

103103
forbidden_flags=$(jq -r '.forbidden.rust[]' "$forbidden_flags_file")
104104

105-
while IFS= read -r line; do
106-
echo "Checking flag $line"
107-
if grep -q "$line" Cargo.toml .cargo/config.toml env_rustflags.txt; then
105+
while IFS= read -r forbidden_flag; do
106+
echo "Checking flag $forbidden_flag"
107+
if grep -q "$forbidden_flag" Cargo.toml .cargo/config.toml env_rustflags.txt; then
108108
log_error_no_header "Detected forbidden flag $forbidden_flag in build output."
109109
error=1
110110
else

0 commit comments

Comments
 (0)