]> gitweb.fluxo.info Git - scripts.git/commitdiff
Fix: show: .git folder exclusion
authorSilvio Rhatto <rhatto@riseup.net>
Sat, 3 Aug 2024 01:21:23 +0000 (22:21 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Sat, 3 Aug 2024 01:21:23 +0000 (22:21 -0300)
show

diff --git a/show b/show
index b0e983d730b2b0b6053185df08caafd9bbea138b..af73a9d34de94baf2d7f38757e7351dfc86f377c 100755 (executable)
--- a/show
+++ b/show
@@ -11,7 +11,7 @@ BIBLIO="$DOCS/bibliographies"
 FILELIST=".filelist"
 LIST="$DOCS/$FILELIST"
 DOC_PATTERN=".*\.(txt|doc|docx|rtf|pdf|sxc|csv|odt|odf|ods|xls|xlsx|ppt|epub|mobi|djvu|lit)"
-FIND_OPTS="-not -path '*.git*' -regextype posix-egrep -iregex"
+FIND_OPTS="-regextype posix-egrep -iregex"
 ARG="$1"
 EXTRA_ARG="$2"
 DATE="`date +%s`"
@@ -27,7 +27,7 @@ function __update_filelist {
   fi
 
   # Refresh
-  cd $DOCS && find . $FIND_OPTS "$DOC_PATTERN" > $LIST
+  cd $DOCS && find . -not -path '*.git*' $FIND_OPTS "$DOC_PATTERN" > $LIST
 
   # Stage
   git add $LIST