Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions scripts/get-version-string.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,17 @@
#!/bin/bash

SCRIPTS_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"

# Output should be empty if git isn't available; the output gets baked into the
# jar file and checked in the application code.
if ! command -v git &>/dev/null ; then
exit
fi

if [ ! -d "$SCRIPTS_DIR/../.git" ]; then
exit
fi

RELEASE_TAG=$("$SCRIPTS_DIR/newest-release-tag.sh")

MERGE_BASE=$(git merge-base "$RELEASE_TAG" HEAD)
Expand Down