mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-05-17 18:25:26 +00:00
fix logic
This commit is contained in:
@@ -21,15 +21,10 @@ for f in $(find api); do
|
|||||||
git diff --exit-code "${f}"
|
git diff --exit-code "${f}"
|
||||||
if [ $? -eq 1 ]; then
|
if [ $? -eq 1 ]; then
|
||||||
echo "Found changes on api dir at ${f}"
|
echo "Found changes on api dir at ${f}"
|
||||||
rc=1
|
MAJOR=true
|
||||||
exit 1
|
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
if [ $rc -eq 1 ]; then
|
|
||||||
MAJOR=true
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo -e "\n"
|
echo -e "\n"
|
||||||
echo -e "================================================================================="
|
echo -e "================================================================================="
|
||||||
echo "Change counter: $(echo $count | tr -s ' ')"
|
echo "Change counter: $(echo $count | tr -s ' ')"
|
||||||
|
|||||||
Reference in New Issue
Block a user