Skip to content

Commit

Permalink
Fix mapfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Antiz96 committed Jan 10, 2025
1 parent 54b1fc8 commit 73b2a7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package/rebuild-todo
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ pkgctl repo clone "${packages[@]}"
if ((IMPORT_KEYS)); then
echo "Importing PGP keys..."
# Only add paths that actually have key(s) to import and ignore paths that don't, don't exit on error
mapfile -td ' ' key_paths < <(find "${packages[@]/%//keys/pgp}" -type f 2>/dev/null) || true
mapfile -d '' key_paths < <(find "${packages[@]/%//keys/pgp}" -type f -print0 2>/dev/null) || true

if ((${#key_paths[@]})); then
cat "${key_paths[@]}" | if [[ -z "$OFFLOAD" ]]; then
Expand Down

0 comments on commit 73b2a7e

Please sign in to comment.