Skip to content

Commit

Permalink
fix off by one bug in makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
esilva-everbridge committed Oct 15, 2018
1 parent fe1c31e commit b641763
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ TARGET := $(shell echo $${PWD\#\#*/})

# These will be provided to the target
BUILD := `git rev-parse HEAD`
COMMIT := `git rev-list HEAD | wc -l | sed 's/^ *//g'`
# always add one to the commit number to fix an off by one bug
# as the release makes a commit prior to publishing
COMMIT := `git rev-list HEAD | wc -l | sed 's/^ *//g' | awk '{print $1 + 1}'`
VERSION := 1.0.$(COMMIT)

# Use linker flags to provide version/build settings to the target
Expand Down

0 comments on commit b641763

Please sign in to comment.