Skip to content

Commit

Permalink
build(darwin): fix use of the darwin version of cut
Browse files Browse the repository at this point in the history
`-f` must be a comma-separated list.

Fix media-kit#709
  • Loading branch information
birros committed Mar 2, 2024
1 parent 63c6ebe commit b5cc17c
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 @@ -61,7 +61,7 @@ create_framework_symlinks() {

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)"
NAME="$(echo "${SLUG}" | cut -d '-' -f 1,3)"

SRC_RELATIVE="$(relpath "${SYMLINKS_DIR}" "${SRC}")"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ create_framework_symlinks() {

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)"
NAME="$(echo "${SLUG}" | cut -d '-' -f 1,3)"

SRC_RELATIVE="$(relpath "${SYMLINKS_DIR}" "${SRC}")"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ create_framework_symlinks() {

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)"
NAME="$(echo "${SLUG}" | cut -d '-' -f 1,3)"

SRC_RELATIVE="$(relpath "${SYMLINKS_DIR}" "${SRC}")"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ create_framework_symlinks() {

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)"
NAME="$(echo "${SLUG}" | cut -d '-' -f 1,3)"

SRC_RELATIVE="$(relpath "${SYMLINKS_DIR}" "${SRC}")"

Expand Down

0 comments on commit b5cc17c

Please sign in to comment.