pre-commit-config: update hugo check [skip ci]
This commit is contained in:
parent
9c6215d9a1
commit
e9bd63decb
@ -14,10 +14,10 @@ repos:
|
||||
entry: |
|
||||
bash -c "
|
||||
files='.drone.yml Dockerfile'
|
||||
count=$(grep -oE '( |hugo-v)[0-9].[0-9].[0-9].[0-9]' $files | cut -d':' -f2 | sed -e 's/^ *//g' -e 's/hugo-v//g' | uniq | wc -l)
|
||||
count=$(grep -oE '(hugo-v)[0-9].[0-9].[0-9].[0-9]' $files | cut -d':' -f2 | sed -e 's/^ *//g' -e 's/hugo-v//g' | uniq | wc -l)
|
||||
if [ $count -gt 1 ]; then
|
||||
echo hugo versions inconsistent:
|
||||
grep -noE --color=always '( |hugo-v)[0-9].[0-9].[0-9].[0-9]' $files
|
||||
grep -noE --color=always '(hugo-v)[0-9].[0-9].[0-9].[0-9]' $files
|
||||
exit 1
|
||||
fi
|
||||
"
|
||||
|
Loading…
Reference in New Issue
Block a user