Skip to content

Commit

Permalink
fix: avoid processing commits sorting if an error appears
Browse files Browse the repository at this point in the history
  • Loading branch information
mano-lis committed Nov 9, 2023
1 parent 0456ecc commit 5d7e3f7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion template-sync.sh
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,11 @@ do
minSum=$sum
wantedSha=$sha
fi
if [ $sum -lt "$minSum" ] || [ "$sum" -eq "$minSum" ]; then
if [ -z "$minSum" ]; then
echo "Error during the commits sorting process"
exit 1
fi
if [ $sum -lt "$minSum" ] || [ $sum -eq "$minSum" ]; then
minSum=$sum
wantedSha=$sha
fi
Expand Down

0 comments on commit 5d7e3f7

Please sign in to comment.