-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(ci): Use the same cargo-deny-checks.sh script locally and on th…
…e CI (#878)
- Loading branch information
1 parent
317d7c9
commit 0e818c2
Showing
2 changed files
with
10 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,13 @@ | ||
#!/usr/bin/env bash | ||
|
||
command -v cargo >/dev/null || { | ||
if test -x "$HOME/.cargo/bin/cargo"; then | ||
export PATH="$HOME/.cargo/bin:$PATH" | ||
else | ||
echo "'cargo' not found. Please install it by following the instructions at https://doc.rust-lang.org/cargo/getting-started/installation.html" | ||
exit 1 | ||
fi | ||
} | ||
|
||
command -v cargo-deny >/dev/null || echo "'cargo-deny' not found. Please install it by running 'cargo install cargo-deny'" | ||
cargo deny check |