From 41ae519e375898f83b30550e8b02dfddf285362d Mon Sep 17 00:00:00 2001 From: Robert Günzler Date: Fri, 2 Oct 2026 10:37:50 +0200 Subject: vcs: accept more file extensions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Robert Günzler --- vcs | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'vcs') diff --git a/vcs b/vcs index 80f831b..200f493 100755 --- a/vcs +++ b/vcs @@ -14,12 +14,13 @@ commit) # prevent auto-commit of non-web files non_web=$(git ls-files -md | grep -vE \ - -e .htm$ \ - -e .html$ \ - -e .md$ \ + -e .txt$ \ + -e .css$ \ -e .jpg$ \ - -e .css$) - if [ ! $? ] && [ -n "$FORCE" ]; then + -e .md$ \ + -e .html$ \ + -e .htm$ || :) + if [ -n "$non_web" ] && [ -z "$FORCE" ]; then echo not committing non-web files: >&2 echo "$non_web" exit 1 -- cgit 1.4.1