From: Nicolas Boisselier Date: Tue, 12 Mar 2019 06:03:18 +0000 (+0000) Subject: etc/git/hooks/pre-commit X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=7aaeab00139036816cd6e33b0455a8c7ac71c30f;p=nb.git etc/git/hooks/pre-commit --- diff --git a/etc/git/hooks/pre-commit b/etc/git/hooks/pre-commit index be83a511..a6f74760 100755 --- a/etc/git/hooks/pre-commit +++ b/etc/git/hooks/pre-commit @@ -23,6 +23,8 @@ if which minify > /dev/null; then min="$(echo "$file" | sed -E 's/\.([^\.]+)$/.min.\1/')" [ -w "$min" ] || continue + echo " Minify $file" + if [ "$MINIFY" = "ext" ]; then #echo "minify --$ext < "$file" > "$min.tmp"" minify --$ext < "$file" > "$min.tmp"