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:
parent
94222a3af4
commit
0ae5860d43
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue