1
0
Fork 0
mirror of https://github.com/imjasonh/cosign-docker-cli-plugins synced 2026-07-06 18:42:28 +00:00

fix command check

This commit is contained in:
Jason Hall 2022-04-07 16:20:21 -04:00
parent 94222a3af4
commit 0ae5860d43

View file

@ -17,12 +17,12 @@ if [ "$#" -lt 2 ]; then
exit 1
fi
if [[ -x "cosign" ]]; then
if ! command -v cosign &> /dev/null; then
echo "Must install cosign, please refer to installation page: https://docs.sigstore.dev/cosign/installation/"
exit 1
fi
if [[ -x "crane" ]]; then
if ! command -v crane &> /dev/null; then
echo "Must install crane, please refer to installation page: https://github.com/google/go-containerregistry/tree/main/cmd/crane#installation"
exit 1
fi