Skip to content

Commit

Permalink
Merge pull request media-kit#337 from 23doors/fix_maxdepth
Browse files Browse the repository at this point in the history
fix: -maxdepth instead of -depth
  • Loading branch information
alexmercerind authored Aug 6, 2023
2 parents ce191a8 + 6075737 commit 769829c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ create_framework_symlinks() {
SRC_DIR="$1"
SYMLINKS_DIR="$2"

find "${SRC_DIR}" -depth 1 -type d | while read SRC; do
find "${SRC_DIR}" -mindepth 1 -maxdepth 1 -type d | while read SRC; do
SLUG="$(basename "${SRC}")"
NAME="$(echo "${SLUG}" | cut -d '-' -f 1 -f 3)"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ create_framework_symlinks() {
SRC_DIR="$1"
SYMLINKS_DIR="$2"

find "${SRC_DIR}" -depth 1 -type d | while read SRC; do
find "${SRC_DIR}" -mindepth 1 -maxdepth 1 -type d | while read SRC; do
SLUG="$(basename "${SRC}")"
NAME="$(echo "${SLUG}" | cut -d '-' -f 1 -f 3)"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ create_framework_symlinks() {
SRC_DIR="$1"
SYMLINKS_DIR="$2"

find "${SRC_DIR}" -depth 1 -type d | while read SRC; do
find "${SRC_DIR}" -mindepth 1 -maxdepth 1 -type d | while read SRC; do
SLUG="$(basename "${SRC}")"
NAME="$(echo "${SLUG}" | cut -d '-' -f 1 -f 3)"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ create_framework_symlinks() {
SRC_DIR="$1"
SYMLINKS_DIR="$2"

find "${SRC_DIR}" -depth 1 -type d | while read SRC; do
find "${SRC_DIR}" -mindepth 1 -maxdepth 1 -type d | while read SRC; do
SLUG="$(basename "${SRC}")"
NAME="$(echo "${SLUG}" | cut -d '-' -f 1 -f 3)"

Expand Down

0 comments on commit 769829c

Please sign in to comment.