Skip to content

Commit

Permalink
Don't accidentally match on [workspace]
Browse files Browse the repository at this point in the history
  • Loading branch information
Inovker0416 committed Dec 23, 2019
1 parent 05281d9 commit c96cb19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion azure/cargo-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
fi
displayName: Are dependencies locked?
- bash: |
if grep '[workspace]' Cargo.toml; then
if grep -P '^\s*\[workspace\]' Cargo.toml; then
echo '##vso[task.setvariable variable=is_workspace]true';
else
echo '##vso[task.setvariable variable=is_workspace]false';
Expand Down

0 comments on commit c96cb19

Please sign in to comment.