CURRENT_VERSION used in fn-repo-update-history-and-commit

This commit is contained in:
Kazuhiro NISHIYAMA
2017-03-30 21:27:35 +09:00
parent be082e2fe0
commit 607a3d88ae

View File

@@ -200,13 +200,13 @@ fn-repo-update() {
fi
log-info "(release-dokku) Adding HISTORY.md, commiting and tagging"
fn-repo-update-history-and-commit "$NEXT_VERSION"
fn-repo-update-history-and-commit "$CURRENT_VERSION" "$NEXT_VERSION"
git tag "v${NEXT_VERSION}"
}
fn-repo-update-history-and-commit() {
declare desc="Updates the history file and commits the changes"
declare NEXT_VERSION="$1"
declare CURRENT_VERSION="$1" NEXT_VERSION="$2"
local COMMIT_MESSAGE HISTORY HISTORY_CONTENTS HISTORY_DOCUMENTATION HISTORY_ENHANCEMENT HISTORY_BUG ISSUE_FILE
pushd "$ROOT_DIR" >/dev/null