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" ] || git status --porcelain | sed 's/^ . //' | while read file; do
+ [ -z "$MINIFY" ] && minify --help | grep -q '\-\-css ' && MINIFY="ext"
+ [ -z "$MINIFY" ] && minify --help | grep -q '\-\-output ' && MINIFY="out"
+ [ -z "$MINIFY" ] || git status --porcelain|sed -E 's/^ *(\?\?|[A-Z]) +//' | while read file; do
ext=""
case "$file" in
*.min.*) continue ;;