Skip to content
This repository has been archived by the owner on Jul 5, 2023. It is now read-only.

Commit

Permalink
fixed maxdepth
Browse files Browse the repository at this point in the history
  • Loading branch information
caarlos0 committed Jun 8, 2017
1 parent 1e3109e commit 9d43c25
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions script/format
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/sh
find . -name '*.sh' -depth 2 -not -wholename './build/*' | while read -r src; do
find . -maxdepth 3 -name '*.sh' -not -path './build/*' | while read -r src; do
shfmt -s -w -p "$src"
done
find . -name '*.zsh' -depth 2 -not -wholename './build/*' | while read -r src; do
find . -maxdepth 3 -name '*.zsh' -not -path './build/*' | while read -r src; do
shfmt -s -w "$src"
done

0 comments on commit 9d43c25

Please sign in to comment.