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-09 14:02:09 -0400
commitb2dced78f6bd35756195a88aacdfc22e449e0bcc (patch)
treec5400c48e548aaad688944719bbbd4905747e80e
parent1891a50c65991b32808f9dff29a254e827fefeb3 (diff)
downloadmisc-scripts-b2dced78f6bd35756195a88aacdfc22e449e0bcc.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) {