Skip to content

Commit

Permalink
Fail release script on errors
Browse files Browse the repository at this point in the history
  • Loading branch information
velo committed Nov 21, 2023
1 parent 7ffa5de commit 60fa088
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
# the License.
#

set -e

function increment() {
local version=$1
result=`echo ${version} | awk -F. -v OFS=. 'NF==1{print ++$NF}; NF>1{if(length($NF+1)>length($NF))$(NF-1)++; $NF=sprintf("%0*d", length($NF), ($NF+1)%(10^length($NF))); print}'`
Expand Down

0 comments on commit 60fa088

Please sign in to comment.