aboutsummaryrefslogtreecommitdiff
path: root/install-mib.pl
diff options
context:
space:
mode:
Diffstat (limited to 'install-mib.pl')
-rwxr-xr-xinstall-mib.pl3
1 files changed, 2 insertions, 1 deletions
diff --git a/install-mib.pl b/install-mib.pl
index 56461a8..54d9e5e 100755
--- a/install-mib.pl
+++ b/install-mib.pl
@@ -3,6 +3,7 @@
use strict;
use File::Basename;
use File::Copy;
+use File::Path qw(make_path);
use autodie;
# install-mib FILE DIR
@@ -25,7 +26,7 @@ close($fd);
die "no MIB definition in $file" unless defined $mibname;
-mkdir($destdir) unless -e $destdir;
+make_path($destdir) unless -e $destdir;
copy($file, $destdir);

Return to:

Send suggestions and report system problems to the System administrator.