From 71e4a73231379f9a1230a2149bc3a16a19da82fb Mon Sep 17 00:00:00 2001 From: Nicolas Boisselier Date: Wed, 9 Oct 2024 00:37:32 +0200 Subject: [PATCH] .githooks/pre-commit --- .githooks/pre-commit | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.githooks/pre-commit b/.githooks/pre-commit index 92813774..2831fc94 100755 --- a/.githooks/pre-commit +++ b/.githooks/pre-commit @@ -10,8 +10,8 @@ echo "Run $0" if which minify > /dev/null; then MINIFY="" - [ -z "$MINIFY" ] && minify --help | grep -q '\-\-css ' && MINIFY="ext" - [ -z "$MINIFY" ] && minify --help | grep -q '\-\-output ' && MINIFY="out" + [ -z "$MINIFY" ] && minify --help 2>&1 | grep -q '\-\-css ' && MINIFY="ext" + [ -z "$MINIFY" ] && minify --help 2>&1 | grep -q '\-\-output ' && MINIFY="out" [ -z "$MINIFY" ] || git status --porcelain|sed -E 's/^ *(\?\?|[A-Z]) +//' | while read file; do ext="" case "$file" in -- 2.47.3