diff --git a/package/rebuild-todo b/package/rebuild-todo index 7568dc5..782766c 100755 --- a/package/rebuild-todo +++ b/package/rebuild-todo @@ -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 - key_paths=($(find "${packages[@]/%//keys/pgp}" -type f 2>/dev/null || true)) + mapfile -td ' ' key_paths < <(find "${packages[@]/%//keys/pgp}" -type f 2>/dev/null) || true if ((${#key_paths[@]})); then cat "${key_paths[@]}" | if [[ -z "$OFFLOAD" ]]; then