From 57f0b3645c66b59a4944f1f57c93ce1f45d00668 Mon Sep 17 00:00:00 2001 From: surtur Date: Sat, 29 Jul 2023 17:04:47 +0200 Subject: [PATCH] pre-commit-config: update hugo check [skip ci] --- .pre-commit-config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 0b0ddeb..ab96010 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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 "