swc/scripts/crev/verify.sh

25 lines
429 B
Bash
Raw Normal View History

#!/usr/bin/env bash
#
2022-04-11 21:45:58 +03:00
# Script used to verify the dependencies of the project.
#
set -eu
# Exclude local crates.
TEXT="$(./scripts/crev/run.sh)"
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"
# exit 1
else
echo "All dependencies are verified"
fi
2022-04-11 21:45:58 +03:00
fi