diff options
| author | Robert Günzler <r@gnzler.io> | 2026-10-02 10:37:50 +0200 |
|---|---|---|
| committer | Robert Günzler <r@gnzler.io> | 2026-10-02 10:51:35 +0200 |
| commit | 41ae519e375898f83b30550e8b02dfddf285362d (patch) | |
| tree | 082b24171657be56ed144a419c621ec6f74678cd /vcs | |
| parent | 3c588cb48d4d3026c8a00faa8732c0655328e63c (diff) | |
| download | site-41ae519e375898f83b30550e8b02dfddf285362d.tar.gz | |
vcs: accept more file extensions
Signed-off-by: Robert Günzler <r@gnzler.io>
Diffstat (limited to '')
| -rwxr-xr-x | vcs | 11 |
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 |