about summary refs log tree commit diff
path: root/vcs
diff options
context:
space:
mode:
Diffstat (limited to 'vcs')
-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