2021-12-28 12:49:33 +03:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
#
|
2022-04-11 21:45:58 +03:00
|
|
|
# Script used to verify the dependencies of the project.
|
2021-12-28 12:49:33 +03:00
|
|
|
#
|
|
|
|
|
|
|
|
set -eu
|
|
|
|
|
|
|
|
# Exclude local crates.
|
2022-01-07 14:03:03 +03:00
|
|
|
TEXT="$(./scripts/crev/run.sh)"
|
2021-12-28 12:49:33 +03:00
|
|
|
|
|
|
|
if [ ! -z "${1-}" ] ; then
|
|
|
|
echo "Opening the crate $1"
|
|
|
|
|
|
|
|
cargo crev open $@
|
|
|
|
cargo crev review $@
|
|
|
|
|
|
|
|
else
|
|
|
|
if [ ! -z "$TEXT" ]; then
|
2022-04-11 21:45:58 +03:00
|
|
|
echo "Found a dependency requires verification"
|
2022-01-07 14:03:03 +03:00
|
|
|
# exit 1
|
2021-12-28 12:49:33 +03:00
|
|
|
else
|
|
|
|
echo "All dependencies are verified"
|
|
|
|
fi
|
2022-04-11 21:45:58 +03:00
|
|
|
fi
|