Skip to content

Commit

Permalink
fix release script
Browse files Browse the repository at this point in the history
  • Loading branch information
jriguera committed Nov 3, 2021
1 parent b5d401e commit e5a12e1
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions create-final-public-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,15 @@ esac

# Get the last git commit made by this script
lastcommit=$(git log --format="%h" --grep="$RELEASE v*" | head -1)
echo "* Changes since last version with commit $lastcommit: "
git_changes=$(git log --pretty="%h %aI %s (%an)" $lastcommit..@ | sed 's/^/- /')
if [ -z "$lastcommit" ]
then
echo "* Changes since beginning"
git_changes=$(git log --pretty="%h %aI %s (%an)" | sed 's/^/- /')
version=1
else
echo "* Changes since last version with commit $lastcommit: "
git_changes=$(git log --pretty="%h %aI %s (%an)" $lastcommit..@ | sed 's/^/- /')
fi
if [ -z "$git_changes" ]
then
echo "Error, no commits since last release with commit $lastcommit!. Please "
Expand Down

0 comments on commit e5a12e1

Please sign in to comment.