diff options
author | Daniel Stenberg <daniel@haxx.se> | 2014-01-05 23:53:26 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2014-01-05 23:53:26 +0100 |
commit | 619d1704ae04e1baa37b50744c3c778cc1978b5b (patch) | |
tree | cd0a98de3a702f09a9949afcb022b6b29d2a6fcd /lib | |
parent | d5f1590d5cfeb3188a302ff4e8cf09cc21f9197d (diff) |
mk-ca-bundle.pl: avoid warnings with -d without parameter
Diffstat (limited to 'lib')
-rwxr-xr-x | lib/mk-ca-bundle.pl | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/mk-ca-bundle.pl b/lib/mk-ca-bundle.pl index 452008568..4b78ff187 100755 --- a/lib/mk-ca-bundle.pl +++ b/lib/mk-ca-bundle.pl @@ -64,6 +64,11 @@ $0 =~ s@.*(/|\\)@@; $Getopt::Std::STANDARD_HELP_VERSION = 1; getopts('bd:fhilnqtuvw:'); +if(!defined($opt_d)) { + # to make plain "-d" use not cause warnings, and actually still work + $opt_d = 'release'; +} + # Use predefined URL or else custom URL specified on command line. my $url = ( defined( $urls{$opt_d} ) ) ? $urls{$opt_d} : $opt_d; |