aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDennis Fink2026-05-30 21:17:38 +0200
committerDennis Fink2026-05-30 21:17:38 +0200
commitf61bff2f1dea92a0f1c0d0e5266889883f9cb325 (patch)
treeb546fd31c1cc63563b5926868f65cccc97815d64
parent8d98f988a52dbfd7edc074725c628f24c20c270a (diff)
downloadtranscode.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-xtranscode.sh2
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