Forráskód Böngészése

don't find across mounts

George Jones 1 éve
szülő
commit
c6b95cf9e4
1 módosított fájl, 1 hozzáadás és 1 törlés
  1. 1 1
      rc.local/find-aliases.sh

+ 1 - 1
rc.local/find-aliases.sh

@@ -52,6 +52,6 @@ function gorg (
 
     AGE=${2:-7};
     [[ -v DEBUG ]] && set -x
-    find "${WHERE}" -type f -name \*."${EXT:-org}" -mtime -"${AGE}" -exec grep "${FLAGS:-}" --color=always -H -e  "${WHAT}" \{\} \; |& grep -v "No such file"
+    find "${WHERE}" -xdev -type f -name \*."${EXT:-org}" -mtime -"${AGE}" -exec grep "${FLAGS:-}" --color=always -H -e  "${WHAT}" \{\} \; |& grep -v "No such file"
     [[ -v DEBUG ]] && set +x
 )