diff options
| author | Dennis Fink | 2026-05-30 21:17:38 +0200 |
|---|---|---|
| committer | Dennis Fink | 2026-05-30 21:17:38 +0200 |
| commit | f61bff2f1dea92a0f1c0d0e5266889883f9cb325 (patch) | |
| tree | b546fd31c1cc63563b5926868f65cccc97815d64 | |
| parent | 8d98f988a52dbfd7edc074725c628f24c20c270a (diff) | |
| download | transcode.sh-f61bff2f1dea92a0f1c0d0e5266889883f9cb325.tar.gz transcode.sh-f61bff2f1dea92a0f1c0d0e5266889883f9cb325.zip | |
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.
Diffstat (limited to '')
| -rwxr-xr-x | transcode.sh | 2 |
1 files changed, 1 insertions, 1 deletions
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 |
