swc/scripts/crev/verify.sh
2022-01-07 20:03:03 +09:00

24 lines
426 B
Bash
Executable File

#!/usr/bin/env bash
#
# Script used to verify the depdencies 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
echo "Found a depenedncy requires verification"
# exit 1
else
echo "All dependencies are verified"
fi
fi