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

Loading…
Cancel
Save