aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2024-04-14 03:59:58 -0400
committerB. Watson <urchlay@slackware.uk>2024-04-14 03:59:58 -0400
commit10d8fa5ca496d8377b56ba5a081d41fec4497324 (patch)
treef620d65577d674ec8a7b5396aefb3b28ea624a3c
parent89b133dfb011ed453a6444b2f2d54eeba82a0216 (diff)
downloadsoxdial-10d8fa5ca496d8377b56ba5a081d41fec4497324.tar.gz
soxdial: don't add silence after last argument.
-rwxr-xr-xsoxdial5
1 files changed, 4 insertions, 1 deletions
diff --git a/soxdial b/soxdial
index 5e6c808..f226847 100755
--- a/soxdial
+++ b/soxdial
@@ -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;
}