summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rwxr-xr-xci/buildserver-upload.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/ci/buildserver-upload.sh b/ci/buildserver-upload.sh
index f09ae11ea0..d9bae81e5b 100755
--- a/ci/buildserver-upload.sh
+++ b/ci/buildserver-upload.sh
@@ -45,7 +45,9 @@ while true; do
upload_path="$platform/releases"
fi
- readarray -t files < <(cut -f 2- -d ' ' < "$checksums_path" | sed 's/^\*\(.*\)/\1/')
+ # Read all files listed in the checksum file at $checksums_path into an array.
+ # sed is used to trim surrounding whitespace and asterisks from filenames.
+ readarray -t files < <(cut -f 2- -d ' ' < "$checksums_path" | sed 's/^[ \t\*]*\(.*\)[ \t]*$/\1/')
for filename in "${files[@]}"; do
file="$checksums_dir/$filename"