style: correct comment

This commit is contained in:
Cell
2026-05-12 14:48:03 +08:00
parent a2d4b465f7
commit f91154744e
3 changed files with 8 additions and 4 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
{{- hugo.Store.Set "version" "v0.4.6-20260511091232-04fb47c6" -}}
{{- hugo.Store.Set "version" "v0.4.6-20260512064804-a2d4b465" -}}
{{- .Store.Set "this" dict -}}
{{- partial "init/detection-env.html" . -}}
@@ -4,7 +4,7 @@
Key differences:
- Generates twitter:site / twitter:creator from site params (.Site.Params.social.twitter)
- The param can be a string or a map; when it's a map, reads Id/id
- The param can be a string or a map; when it's a map, reads creator/id
*/ -}}
{{- $images := partial "_funcs/get-page-images" . }}
{{- with index $images 0 }}
+6 -2
View File
@@ -30,6 +30,12 @@ export function updateVersion(type: 'dev' | 'prod') {
]
const gitDiff: string = execSync('git diff --cached --name-only').toString().trim()
// console.log(
// 'Node.js:',
// execSync('which node').toString().trim(),
// process.version,
// )
if (type !== 'prod') {
// Avoid conflicts when creating a Pull Request
if (!['dev', 'main'].includes(branch)) {
@@ -37,7 +43,6 @@ export function updateVersion(type: 'dev' | 'prod') {
process.exit(0)
}
if (!match.some(item => gitDiff.includes(item))) {
console.log('Node.js:', process.version)
console.log('No need to update the FixIt version.')
process.exit(0)
}
@@ -82,6 +87,5 @@ export function updateVersion(type: 'dev' | 'prod') {
execFileSync('git', ['add', stageFile])
}
})
// console.log('Node.js:', process.version)
console.log(`Update the FixIt version from v${lastVersion} to v${latestVersion}.`)
}