From f61bff2f1dea92a0f1c0d0e5266889883f9cb325 Mon Sep 17 00:00:00 2001 From: Dennis Fink Date: Sat, 30 May 2026 21:17:38 +0200 Subject: fix(dry-run): join ffmpeg command safely Use printf %q to build the verbose dry-run ffmpeg command as a single space-separated string. This makes the command display clearer and more copyable while preserving shell-safe quoting for arguments that contain spaces or special characters. --- transcode.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/transcode.sh b/transcode.sh index 0dfded6..4bece83 100755 --- a/transcode.sh +++ b/transcode.sh @@ -1451,8 +1451,8 @@ function encode_one() { if [[ $DRY_RUN -eq 1 ]]; then msg "DRY RUN:" "Would encode with preset $PRESET_NAME" encode_one_print_metadata - verbose "Command:" "${encode_cmd[*]}" verbose "Final output path:" "$final_output_file" + verbose "Command:" "$(printf "%q " "${encode_cmd[@]}")" return $EXIT_OK fi -- cgit v1.3.1