aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2024-04-09 14:02:09 -0400
committerB. Watson <urchlay@slackware.uk>2024-04-11 16:52:48 -0400
commit348c68f6c1f997d816ccc5fbdc14313dffca42fa (patch)
tree3c030e95f0670647fc003e835188b979b732d3c2
parent453ac23ab750336646a4714c6a1ec7df58f2d239 (diff)
downloadsoxdial-348c68f6c1f997d816ccc5fbdc14313dffca42fa.tar.gz
soxdial: check -o/--output argument.
-rwxr-xr-xsoxdial1
1 files changed, 1 insertions, 0 deletions
diff --git a/soxdial b/soxdial
index 7228483..924c958 100755
--- a/soxdial
+++ b/soxdial
@@ -472,6 +472,7 @@ for ($argc = 0; $argc < @ARGV; $argc++) {
$noexec = 1;
} elsif(/^--?o(?:output)?$/) {
$output = $ARGV[++$argc];
+ die "$SELF: missing argument for --output.\n" unless defined $output;
warn "$SELF: output set to '$output'\n" if $verbose;
} elsif(/^--?b(?:its)?$/) {
if(@sox_subcmds) {