diff options
author | B. Watson <urchlay@slackware.uk> | 2024-04-14 03:59:58 -0400 |
---|---|---|
committer | B. Watson <urchlay@slackware.uk> | 2024-04-14 03:59:58 -0400 |
commit | 10d8fa5ca496d8377b56ba5a081d41fec4497324 (patch) | |
tree | f620d65577d674ec8a7b5396aefb3b28ea624a3c | |
parent | 89b133dfb011ed453a6444b2f2d54eeba82a0216 (diff) | |
download | soxdial-10d8fa5ca496d8377b56ba5a081d41fec4497324.tar.gz |
soxdial: don't add silence after last argument.
-rwxr-xr-x | soxdial | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -802,7 +802,10 @@ for ($argc = 0; $argc < @ARGV; $argc++) { } if(@freqs1) { push @sox_subcmds, make_sox_subcmd($time_override); - push @sox_subcmds, silence_subcmd(randomize($intertime)); + if($argc < $#ARGV) { + push @sox_subcmds, silence_subcmd(randomize($intertime)) + } + warn "argc $argc, \$\#ARGV " . $#ARGV . "\n"; } else { warn "$SELF: no valid digits in dial string.\n" if $verbose; } |