summaryrefslogtreecommitdiffhomepage
path: root/ci
diff options
context:
space:
mode:
authorDavid Lönnhager <david.l@mullvad.net>2025-03-20 17:20:03 +0100
committerDavid Lönnhager <david.l@mullvad.net>2025-03-20 17:20:03 +0100
commit8442936996488c36751e4591c29c592baabe3eca (patch)
treef94ac01018622b095d777a554246b98ff7c1296d /ci
parentf9c44d63533bcaaa91435b92abec1ba8cea25925 (diff)
downloadmullvadvpn-8442936996488c36751e4591c29c592baabe3eca.tar.xz
mullvadvpn-8442936996488c36751e4591c29c592baabe3eca.zip
Trim surrounding whitespace in checksum files
Diffstat (limited to 'ci')
-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"