INNER CODE UNIT · Shell

code

ContainerSolutions/kubernetes-examples · bin/test.sh:59

  local code=${2-1} # default exit status 1
  msg "$msg"
  exit "$code"
}

parse_params() {
  # default values of variables set from params
  flag=0
  k8s_version=master

  while :; do
    case "${1-}" in
    -h | --help) usage ;;
    -v | --verbose) set -x ;;
    --no-color) NO_COLOR=1 ;;
    -f | --flag) flag=1 ;; # example flag
    --version)
      k8s_versionm="${2-}"

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…