diff --git a/script/publish-docs b/script/publish-docs index 3c44507f..30600d8f 100755 --- a/script/publish-docs +++ b/script/publish-docs @@ -1,10 +1,10 @@ -#!/bin/sh +#!/bin/bash # Exit if a command returns a non-zero code set -e # Store the versions -VERSION=$(git describe --tags "$(git rev-list --tags='v[0-9]*' --max-count=1)" | sed 's/^v//') +VERSION=$(git describe --tags --match "v[0-9]*" --abbrev=0 | sed 's/^v//') HEAD=$(git rev-parse HEAD) # Generate docs