2016-04-05 14:12:31 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
|
|
set -o errexit
|
|
|
|
|
set -o nounset
|
|
|
|
|
set -o pipefail
|
|
|
|
|
|
2016-05-16 12:16:38 +02:00
|
|
|
S2I_ROOT=$(dirname "${BASH_SOURCE}")/..
|
|
|
|
|
source "${S2I_ROOT}/hack/common.sh"
|
2016-04-05 14:12:31 +02:00
|
|
|
|
2016-05-16 12:16:38 +02:00
|
|
|
cd "${S2I_ROOT}"
|
2016-04-05 14:12:31 +02:00
|
|
|
|
|
|
|
|
mv contrib/bash/s2i contrib/bash/s2i-proposed
|
2016-10-28 12:10:59 +01:00
|
|
|
trap "mv contrib/bash/s2i-proposed contrib/bash/s2i" exit
|
2016-04-05 14:12:31 +02:00
|
|
|
hack/update-generated-completions.sh
|
|
|
|
|
|
|
|
|
|
ret=0
|
|
|
|
|
diff -Naupr contrib/bash/s2i contrib/bash/s2i-proposed || ret=$?
|
|
|
|
|
|
|
|
|
|
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
|