diff --git a/scripts/bump_version.sh b/scripts/bump_version.sh index d91e127d..3d9d204d 100755 --- a/scripts/bump_version.sh +++ b/scripts/bump_version.sh @@ -10,6 +10,9 @@ if [ -z ${1} ] || [ -z ${2} ]; then exit 1 fi +today=$(date "+%b %d, %Y") + find . -name "*.toml" | xargs sed -i.bak "s/${1}/${2}/g" find site/ -name "*.md" | xargs sed -i.bak "s/${1}/${2}/g" +sed -i.bak "s/^date.*/date = \"$today\"/" site/index.toml find . -name "*.bak" | xargs rm