if hash parallel 2>/dev/null; then
echo "Signing in parallel..."
+ # We need to wordsplit ${files_to_sign[*]} so disable quoting check
+ # shellcheck disable=SC2086
parallel --no-notice --jobs 200% --halt now,fail=1 \
"$GPG_BIN --batch -abq {}" ::: ${files_to_sign[*]}
echo "Signed the following files:"
printf '%s\n' "${files_to_sign[@]}"
else
- echo "GNU `parallel` not found. Signing in serial mode..."
+ echo "GNU parallel not found. Signing in serial mode..."
for f in "${files_to_sign[@]}"; do
echo "Signing $f"
"$GPG_BIN" --batch -abq "$f"