Skip to content

Commit 0fff3f9

Browse files
committed
Merge branch 'build-trim-surrounding-whitespace'
2 parents f9c44d6 + 8442936 commit 0fff3f9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ci/buildserver-upload.sh

+3-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,9 @@ while true; do
4545
upload_path="$platform/releases"
4646
fi
4747

48-
readarray -t files < <(cut -f 2- -d ' ' < "$checksums_path" | sed 's/^\*\(.*\)/\1/')
48+
# Read all files listed in the checksum file at $checksums_path into an array.
49+
# sed is used to trim surrounding whitespace and asterisks from filenames.
50+
readarray -t files < <(cut -f 2- -d ' ' < "$checksums_path" | sed 's/^[ \t\*]*\(.*\)[ \t]*$/\1/')
4951
for filename in "${files[@]}"; do
5052
file="$checksums_dir/$filename"
5153

0 commit comments

Comments
 (0)