diff --git a/docs/set-solana-release-tag.sh b/docs/set-solana-release-tag.sh index 491599d42e..ea4f7c764d 100755 --- a/docs/set-solana-release-tag.sh +++ b/docs/set-solana-release-tag.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash +set -e +cd "$(dirname "$0")" + if [[ -n $CI_TAG ]]; then LATEST_SOLANA_RELEASE_VERSION=$CI_TAG else @@ -12,3 +15,6 @@ fi set -x find html/ -name \*.html -exec sed -i "s/LATEST_SOLANA_RELEASE_VERSION/$LATEST_SOLANA_RELEASE_VERSION/g" {} \; +if [[ -n $CI ]]; then + find src/ -name \*.md -exec sed -i "s/LATEST_SOLANA_RELEASE_VERSION/$LATEST_SOLANA_RELEASE_VERSION/g" {} \; +fi