Skip to content

Commit

Permalink
Make the bump-version.sh also update version in documentation sample …
Browse files Browse the repository at this point in the history
…outputs
  • Loading branch information
rm3l committed Feb 20, 2023
1 parent e32024f commit 8f1a736
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions scripts/bump-version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,15 @@ echo "* Bumping version in Dockerfile.rhel"
sed -i "s/\(version=\).*/\1${NEW_VERSION}/g" Dockerfile.rhel
check_version Dockerfile.rhel

echo "* Bumping version in documentation sample outputs"
# globstar: allows the '**' to recursively try to find file and directories
# nullglob: filename patterns that don't match any filenames are expanded to nothing rather than remaining unexpanded.
shopt -s globstar nullglob
for file in ./docs/website/docs/**/docs-mdx/**/*.mdx; do
sed -i 's/\(odo version: v\).*/\1'"${NEW_VERSION}"'/g' "$file"
done

echo
echo "****************************************************************************************"
echo "* Don't forget to update homebrew package at https://github.com/kadel/homebrew-odo ! *"
echo "****************************************************************************************"
Expand Down

0 comments on commit 8f1a736

Please sign in to comment.