Browse Source

fix pruing

George Jones 1 year ago
parent
commit
8e6ffeb9ba
1 changed files with 3 additions and 2 deletions
  1. 3 2
      rc.local/find-aliases.sh

+ 3 - 2
rc.local/find-aliases.sh

@@ -21,7 +21,6 @@ function latest (
     prune_linux='foo/|git/|backups/|auto-save-list|config/|snap/|cache/|local/|mozilla/|target/|.rustup/|.cargo/'
     prune_just_me='blog/docs'
     prune=".*(${prune_just_me}|${prune_linux}).*"
-    #prune='.*(foo|r|git).*'
     # define errors to be ignored
 
     # define parameters that control grep of file content
@@ -44,12 +43,14 @@ function latest (
 
         # -xdev \
 
+        debug "prune is ${prune}"
+
         find -L ${WHERE} \
              `: global options` \
              `: prune 'junk' files and dirs` \
              -regextype posix-extended \
              -xdev \
-             -regex ${prune} -prune -o \
+             -regex "${prune}" -prune -o \
              `: only look at regular files ` \
              -type f \
              `: restrict to mtime AGE days ago` \