github.com/nak3/source-to-image@v1.1.10-0.20180319140719-2ed55639898d/hack/update-generated-completions.sh (about)

     1  #!/bin/bash
     2  
     3  set -o errexit
     4  set -o nounset
     5  set -o pipefail
     6  
     7  S2I_ROOT=$(dirname "${BASH_SOURCE}")/..
     8  
     9  source "${S2I_ROOT}/hack/common.sh"
    10  
    11  s2i::build::build_binaries "$@"
    12  
    13  echo "+++ Updating Bash completion in contrib/bash/s2i"
    14  ${S2I_LOCAL_BINPATH}/s2i completion bash> ${S2I_ROOT}/contrib/completions/bash/s2i
    15  ${S2I_LOCAL_BINPATH}/s2i completion zsh> ${S2I_ROOT}/contrib/completions/zsh/s2i