fix logic

This commit is contained in:
Kurnianto Trilaksono
2024-03-27 00:16:03 +08:00
parent fbc102dbd3
commit 846d3c09eb

View File

@@ -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 ' ')"