about summary refs log tree commit diff
path: root/vcs
diff options
context:
space:
mode:
authorRobert Günzler <r@gnzler.io>2026-10-02 10:37:50 +0200
committerRobert Günzler <r@gnzler.io>2026-10-02 10:51:35 +0200
commit41ae519e375898f83b30550e8b02dfddf285362d (patch)
tree082b24171657be56ed144a419c621ec6f74678cd /vcs
parent3c588cb48d4d3026c8a00faa8732c0655328e63c (diff)
downloadsite-41ae519e375898f83b30550e8b02dfddf285362d.tar.gz
vcs: accept more file extensions
Signed-off-by: Robert Günzler <r@gnzler.io>
Diffstat (limited to '')
-rwxr-xr-xvcs11
1 files changed, 6 insertions, 5 deletions
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