From 98d193e9309108ff6c29657021a9a84cc507eba1 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Mon, 8 Nov 2021 13:48:10 +0100 Subject: [PATCH] gal-mj-init: Use "do" instead of "require" Otherwise Perl's caching of modules can bite us (if default.cf is already loaded, require returns 1 instead of the proper return value). --- bin/gal-mj-init | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/gal-mj-init b/bin/gal-mj-init index adceebe..84a7600 100755 --- a/bin/gal-mj-init +++ b/bin/gal-mj-init @@ -11,7 +11,7 @@ fi cat >gallery.cf <<'AMEN' use common::sense; -my $gal = require '../../default.cf'; +my $gal = do '../../default.cf'; $gal->set( Title => 'Unnamed', ); -- 2.39.2