cleanup: remove hugo-version-check.sh. (#18817)

This commit is contained in:
Jacky Wu
2020-02-12 03:28:07 +08:00
committed by GitHub
parent d57169c29a
commit 92e30010bd
3 changed files with 3 additions and 31 deletions
-7
View File
@@ -6,7 +6,6 @@
| `upstream_changes.py` | Find what changes occurred between two versions. |
| `test_examples.sh` | This script tests whether a change affects example files bundled in the website. |
| `check-headers-file.sh` | This script checks the headers if you are in a production environment. |
| `hugo-version-check.sh` | This script checks whether your local Hugo version matches the version used in production. |
| `diff_l10n_branches.py` | This script generates a report of outdated contents in `content/<l10n-lang>` directory by comparing two l10n team milestone branches. |
@@ -71,12 +70,6 @@ This script checks the headers if you are in a production environment.
./scripts/check-headers-file.sh
## hugo-version-check.sh
This script checks whether your local Hugo version matches the version used in production.
./scripts/hugo-version-check.sh
## diff_l10n_branches.py
```
-18
View File
@@ -1,18 +0,0 @@
#!/bin/bash
MAIN_HUGO_VERSION=$1
NETLIFY_HUGO_VERSION=$(cat netlify.toml | grep HUGO_VERSION | awk '{ print $3 }' | tr -d '"')
echo ${NETLIFY_HUGO_VERSION}
if [[ ${MAIN_HUGO_VERSION} != ${NETLIFY_HUGO_VERSION} ]]; then
echo """
[FAILURE] The Hugo version set in the Makefile is ${MAIN_HUGO_VERSION} while the version in netlify.toml is ${NETLIFY_HUGO_VERSION}
[FAILURE] Please update these versions so that they are same (consider the higher of the two versions as canonical).
"""
exit 1
else
echo "[SUCCESS] The Hugo versions match between the Makefile and netlify.toml"
exit 0
fi