chore(striker-ui): patch find command in lsxdist

main
Tsu-ba-me 9 months ago
parent 77b7f2bb37
commit a7ece9161a
  1. 25
      striker-ui/lsxdist

@ -18,17 +18,24 @@
# and # and
# * removes leading "./" and append "\" # * removes leading "./" and append "\"
PPATH="${BASH_SOURCE[0]}"
PNAME="$(basename "$PPATH")"
found=$(find . \ found=$(find . \
-mindepth 1 -maxdepth 1 \ -mindepth 1 \
-not \( -name node_modules -prune \) \ -maxdepth 1 \
-not \( -name *git* -prune \) \ -not \( -name "node_modules" -prune \) \
-not \( -name *husky* -prune \) \ -not \( -name "*git*" -prune \) \
-not \( -name public -prune \) \ -not \( -name "*husky*" -prune \) \
-not \( -name *[Mm]ake* -prune \) \ -not \( -name "public" -prune \) \
-not \( -name [.]env[.]* -prune \) \ -not \( -name "*[Mm]ake*" -prune \) \
-not \( -name "*$(basename ${BASH_SOURCE[0]})*" -prune \) \ -not \( -name "[.]env[.]*" -prune \) \
-not \( -name "*$PNAME*" -prune \) \
-not \( -name ".next" -prune \) \ -not \( -name ".next" -prune \) \
| sed -E 's@^./(.+)$@\1 \\@') -not \( -name "out" -prune \) \
)
found=$(sed -E 's@^./(.+)$@\1 \\@' <<< "$found")
sorted=$(sort <<< "$found") sorted=$(sort <<< "$found")

Loading…
Cancel
Save