github.com/verrazzano/verrazzano@v1.7.0/release/scripts/common.sh (about) 1 #!/usr/bin/env bash 2 # 3 # Copyright (c) 2021, 2022, Oracle and/or its affiliates. 4 # Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. 5 # 6 # Common script used to automate the release process. 7 8 SCRIPT_DIR=$(cd $(dirname "$0"); pwd -P) 9 10 # Validates whether OCI CLI is installed 11 function validate_oci_cli() { 12 command -v oci >/dev/null 2>&1 || { 13 echo "OCI cli not installed" 14 return 1 15 } 16 } 17 18 # Validates whether Github CLI is installed 19 function validate_github_cli() { 20 command -v gh >/dev/null 2>&1 || { 21 echo "Github cli not installed" 22 return 1 23 } 24 }