From 4e0577f52a5583af907d3b1ea5ca269835b603ad Mon Sep 17 00:00:00 2001 From: George Cushen Date: Thu, 5 Nov 2020 23:40:06 +0000 Subject: module: update & fix update script Update script now reads the Wowchemy module's config.yaml rather than config.toml --- update_wowchemy.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'update_wowchemy.sh') diff --git a/update_wowchemy.sh b/update_wowchemy.sh index fdc57279..0bcc241a 100755 --- a/update_wowchemy.sh +++ b/update_wowchemy.sh @@ -24,8 +24,8 @@ function update_wowchemy () { function update_netlify () { # - Update Netlify.toml with required Hugo version if [ -f ./netlify.toml ]; then - curl -o "tmp_get_version" https://raw.githubusercontent.com/wowchemy/wowchemy-hugo-modules/master/wowchemy/config.toml - version=$(sed -n 's/^[[:space:]]*min = //p' "tmp_get_version" | tr -d '"') + curl -o "tmp_get_version" https://raw.githubusercontent.com/wowchemy/wowchemy-hugo-modules/master/wowchemy/config.yaml + version=$(sed -n 's/^[[:space:]]*min: //p' "tmp_get_version" | tr -d "'") version="${version}" echo "Set Netlify Hugo version to v${version}" sed -i.bak -e "s/HUGO_VERSION = .*/HUGO_VERSION = \"$version\"/g" ./netlify.toml && rm -f ./netlify.toml.bak @@ -38,7 +38,7 @@ update_wowchemy update_netlify echo -echo "If there are breaking changes, the config and/or front matter of content" \ +echo "If there are breaking changes, the site structure, config, and/or front matter of content" \ "may need upgrading by following the steps in the relevant consecutive release notes." echo echo "View the update guide at: https://wowchemy.com/docs/update/" -- cgit v1.2.3