1
0
mirror of https://github.com/openshift/source-to-image.git synced 2026-02-05 03:45:02 +01:00
Files
source-to-image/hack/update-generated-completions.sh
Shiyang Wang 514d320360 add zsh completions for s2i
change condition

modify verify-bash-completion.sh

change to pass golint

change to pass golint
2016-12-22 11:13:00 +08:00

15 lines
390 B
Bash
Executable File

#!/bin/bash
set -o errexit
set -o nounset
set -o pipefail
S2I_ROOT=$(dirname "${BASH_SOURCE}")/..
source "${S2I_ROOT}/hack/common.sh"
s2i::build::build_binaries "$@"
echo "+++ Updating Bash completion in contrib/bash/s2i"
${S2I_LOCAL_BINPATH}/s2i completion bash> ${S2I_ROOT}/contrib/completions/bash/s2i
${S2I_LOCAL_BINPATH}/s2i completion zsh> ${S2I_ROOT}/contrib/completions/zsh/s2i