diff options
Diffstat (limited to 'Master/tlpkg/TeXLive/TLUtils.pm')
-rw-r--r-- | Master/tlpkg/TeXLive/TLUtils.pm | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Master/tlpkg/TeXLive/TLUtils.pm b/Master/tlpkg/TeXLive/TLUtils.pm index 5a9568f0a1b..08ab4571272 100644 --- a/Master/tlpkg/TeXLive/TLUtils.pm +++ b/Master/tlpkg/TeXLive/TLUtils.pm @@ -2310,14 +2310,15 @@ duplicates, maybe even error checking. sub get_disabled_local_configs { my $localconf = shift; my $cc = shift; + my @disabled = (); if (-r "$localconf") { open FOO, "<$localconf" or die "strange, -r ok but cannot open $localconf: $!"; my @tmp = <FOO>; close(FOO) || warn("Closing $localconf did not succeed: $!"); - my @disabled = map { if (m/^$cc!(\S+)\s*$/) { $1 } else { }} @tmp; - return @disabled; + @disabled = map { if (m/^$cc!(\S+)\s*$/) { $1 } else { }} @tmp; } + return @disabled; } sub create_fmtutil { |