Skip to content

Commit

Permalink
Do not search files through hidden directories
Browse files Browse the repository at this point in the history
  • Loading branch information
kenorb committed Jul 29, 2023
1 parent b755e6f commit 0e1dee8
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions scripts/.funcs.cmds.inc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -557,10 +557,10 @@ ea_find()
echo "$file"
return
}
result=$(find -L . "$WORKDIR" "$ROOT" ~ -maxdepth 5 -type f '(' -iname "$file" -o -iname "${file%.*}.mq${mt_ver}" ')' -print -quit)
[ -z "$result" ] && result=$(find -L . "$WORKDIR" "$ROOT" ~ -maxdepth 5 -type f '(' -iname "$file" -o -name "${file%.*}.ex${mt_ver}" ')' -print -quit)
[ -z "$result" ] && result=$(find -L . "$WORKDIR" "$ROOT" ~ -maxdepth 5 -type f -iname "*${file%.*}*.mq${mt_ver}" -print -quit)
[ -z "$result" ] && result=$(find -L . "$WORKDIR" "$ROOT" ~ -maxdepth 5 -type f -iname "*${file%.*}*.ex${mt_ver}" -print -quit)
result=$(find -L . "$WORKDIR" "$ROOT" ~ -maxdepth 5 -type f -not -path '*/.*' -a '(' -iname "$file" -o -iname "${file%.*}.mq${mt_ver}" ')' -print -quit)
[ -z "$result" ] && result=$(find -L . "$WORKDIR" "$ROOT" ~ -maxdepth 5 -type f -not -path '*/.*' -a '(' -iname "$file" -o -name "${file%.*}.ex${mt_ver}" ')' -print -quit)
[ -z "$result" ] && result=$(find -L . "$WORKDIR" "$ROOT" ~ -maxdepth 5 -type f -not -path '*/.*' -a -iname "*${file%.*}*.mq${mt_ver}" -print -quit)
[ -z "$result" ] && result=$(find -L . "$WORKDIR" "$ROOT" ~ -maxdepth 5 -type f -not -path '*/.*' -a -iname "*${file%.*}*.ex${mt_ver}" -print -quit)
echo ${result#./}
cd - &> /dev/null
}
Expand All @@ -586,10 +586,10 @@ script_find()
echo "$file"
return
}
result=$(find -L . "$WORKDIR" "$ROOT" ~ -maxdepth 5 -type f '(' -iname "$file" -o -iname "${file%.*}.mq${mt_ver}" ')' -print -quit)
[ -z "$result" ] && result=$(find -L . "$WORKDIR" "$ROOT" ~ -maxdepth 5 -type f '(' -iname "$file" -o -name "${file%.*}.ex${mt_ver}" ')' -print -quit)
[ -z "$result" ] && result=$(find -L . "$WORKDIR" "$ROOT" ~ -maxdepth 5 -type f -iname "*${file%.*}*.mq${mt_ver}" -print -quit)
[ -z "$result" ] && result=$(find -L . "$WORKDIR" "$ROOT" ~ -maxdepth 5 -type f -iname "*${file%.*}*.ex${mt_ver}" -print -quit)
result=$(find -L . "$WORKDIR" "$ROOT" ~ -maxdepth 5 -type f -not -path '*/.*' -a '(' -iname "$file" -o -iname "${file%.*}.mq${mt_ver}" ')' -print -quit)
[ -z "$result" ] && result=$(find -L . "$WORKDIR" "$ROOT" ~ -maxdepth 5 -type f -not -path '*/.*' -a '(' -iname "$file" -o -name "${file%.*}.ex${mt_ver}" ')' -print -quit)
[ -z "$result" ] && result=$(find -L . "$WORKDIR" "$ROOT" ~ -maxdepth 5 -type f -not -path '*/.*' -a -iname "*${file%.*}*.mq${mt_ver}" -print -quit)
[ -z "$result" ] && result=$(find -L . "$WORKDIR" "$ROOT" ~ -maxdepth 5 -type f -not -path '*/.*' -a -iname "*${file%.*}*.ex${mt_ver}" -print -quit)
echo ${result#./}
cd - &> /dev/null
}
Expand Down

0 comments on commit 0e1dee8

Please sign in to comment.