From fd7db9ffed741f97d52d83671771ef4a020fe8b1 Mon Sep 17 00:00:00 2001 From: Joe Cooper Date: Mon, 9 Oct 2023 19:42:00 -0500 Subject: [PATCH] Undo that dumb boilerplate, gotta figure out a better way (#14) --- jailkit-lib.pl | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/jailkit-lib.pl b/jailkit-lib.pl index eb387e8..e8640f3 100644 --- a/jailkit-lib.pl +++ b/jailkit-lib.pl @@ -17,11 +17,7 @@ =head1 jailkit-lib.pl =cut BEGIN { push(@INC, ".."); } -if (eval {require WebminCore;1;} ne 1) { - exit 1; -} else { - WebminCore->import(); -} +eval "use WebminCore;"; init_config();