1
0
mirror of https://github.com/openshift/source-to-image.git synced 2026-02-05 12:44:54 +01:00
Files
source-to-image/hack/verify-bash-completion.sh

26 lines
552 B
Bash
Raw Normal View History

2016-04-05 14:12:31 +02:00
#!/bin/bash
set -o errexit
set -o nounset
set -o pipefail
STI_ROOT=$(dirname "${BASH_SOURCE}")/..
source "${STI_ROOT}/hack/common.sh"
cd "${STI_ROOT}"
mv contrib/bash/s2i contrib/bash/s2i-proposed
hack/update-generated-completions.sh
ret=0
diff -Naupr contrib/bash/s2i contrib/bash/s2i-proposed || ret=$?
mv contrib/bash/s2i-proposed contrib/bash/s2i
if [[ $ret -eq 0 ]]
then
echo "SUCCESS: Generated completions up to date."
else
echo "FAILURE: Generated completions out of date. Please run hack/update-generated-completions.sh"
exit 1
fi