Skip to content

Commit

Permalink
Add wildcard to attribution file names search
Browse files Browse the repository at this point in the history
  • Loading branch information
abhay-krishna committed Jun 28, 2023
1 parent 22f036c commit 3509147
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions build/lib/simple_create_tarballs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ BINARY_PLATFORMS="$5"
TAR_PATH="$6"
GIT_HASH="$7"

LICENSES_PATHS=($(find $OUTPUT_DIR -type d -name "LICENSES"))
ATTRIBUTION_PATHS=($(find $OUTPUT_DIR -type f -name "ATTRIBUTION.txt"))
LICENSE_PATHS=($(find $OUTPUT_DIR -type d -name "LICENSES"))
ATTRIBUTION_PATHS=($(find $OUTPUT_DIR -type f -name "*ATTRIBUTION.txt"))

SCRIPT_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd -P)"
source "${SCRIPT_ROOT}/common.sh"
Expand All @@ -40,7 +40,7 @@ function build::simple::tarball() {
ARCH="$(cut -d '/' -f2 <<< ${platform})"
TAR_FILE="${TAR_FILE_PREFIX}-${OS}-${ARCH}-${TAG}.tar.gz"

for path in "${LICENSES_PATHS[@]}"; do
for path in "${LICENSE_PATHS[@]}"; do
build::common::echo_and_run cp -rf $path ${OUTPUT_BIN_DIR}/${OS}-${ARCH}/
done
for path in "${ATTRIBUTION_PATHS[@]}"; do
Expand Down

0 comments on commit 3509147

Please sign in to comment.