Skip to content

Commit

Permalink
chore:fix version setting brings in wrong snapshot (#694)
Browse files Browse the repository at this point in the history
  • Loading branch information
ZheSun88 committed Mar 4, 2021
1 parent f20f922 commit 1ee0fb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/prepareDeploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ getLatest() {

stable=`echo "$releases" | grep '<version>' | cut -d '>' -f2 |cut -d '<' -f1 | grep "^$base" | tail -1`
[ -n "$stable" ] && echo $stable && return
pre=`echo "$prereleases" | grep '<version>' | cut -d '>' -f2 |cut -d '<' -f1 | grep "^$base" | egrep 'alpha|beta|rc' | tail -1`
pre=`echo "$prereleases" | grep '<version>' | cut -d '>' -f2 |cut -d '<' -f1 | grep "^$base" | grep -v "SNAPSHOT" | egrep 'alpha|beta|rc' | tail -1`
[ -z "$pre" ] && pre=`echo "$prereleases" | grep '<version>' | cut -d '>' -f2 |cut -d '<' -f1 | egrep 'alpha|beta|rc' | tail -1`
[ -z "$pre" ] && pre="$2"
expr "$pre" : ".*SNAPSHOT" >/dev/null && echo "Releases cannot depend on SNAPSHOT: $1 - $pre" && exit 1 || echo $pre
Expand Down

0 comments on commit 1ee0fb0

Please sign in to comment.