diff options
author | George Cushen <gcushen@users.noreply.github.com> | 2020-11-06 02:40:06 +0300 |
---|---|---|
committer | George Cushen <gcushen@users.noreply.github.com> | 2020-11-06 02:40:06 +0300 |
commit | 4e0577f52a5583af907d3b1ea5ca269835b603ad (patch) | |
tree | b9790742b1db1640d21e3f6996bef56c768a0eb1 /update_wowchemy.sh | |
parent | 9e4469443a4815948f68b3c3b4919d9e9d17d4c5 (diff) |
module: update & fix update script
Update script now reads the Wowchemy module's config.yaml rather than config.toml
Diffstat (limited to 'update_wowchemy.sh')
-rwxr-xr-x | update_wowchemy.sh | 6 |
1 files changed, 3 insertions, 3 deletions
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/" |