this repo has no description

[excludes] fix the check for files to work

+1 -1
run_once_after_spotlight_ignores.sh
··· 16 16 17 17 # skip spotlight index on existing node_modules, bundled gems and rails assets 18 18 pathnames=(~/src/*/*/{.bundle/ruby,node_modules}) 19 - if [[ -n "$pathnames" ]]; then 19 + if (find "$pathnames"); then 20 20 for pathname in $pathnames; do 21 21 touch "$pathname/.metadata_never_index" 22 22
+1 -1
run_once_before_time_machine_excludes.sh
··· 12 12 13 13 # skip backup on node_modules, bundled gems and rails assets 14 14 pathnames=(~/src/*/*/{.bundle/ruby,node_modules}) 15 - if [[ -n "$pathnames" ]]; then 15 + if (find "$pathnames" 2>&1 1>/dev/null); then 16 16 for pathname in $pathnames; do 17 17 sudo tmutil addexclusion "$pathname" 18 18