Explorar el Código

Fix check_disk_smb for perl environments which don't have the utf8 package

madlohe hace 6 años
padre
commit
cf7e1e85ba
Se han modificado 1 ficheros con 4 adiciones y 1 borrados
  1. 4 1
      plugins-scripts/check_disk_smb.pl

+ 4 - 1
plugins-scripts/check_disk_smb.pl

@@ -19,7 +19,10 @@
 #
 
 require 5.004;
-use utf8::all;
+eval "use utf8::all";
+if ( $@ ) {
+    use utf8::all;
+}
 use POSIX;
 use strict;
 use Getopt::Long;