asdf/scripts/update_version_in_docs.bash

7 lines
165 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
version=$(cat version.txt)
sed -i "s/\\(git clone.*--branch \\).*\\(\`.*|\\)/\\1v$version\\2/" docs/guide/getting-started.md