summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xMaster/texmf/scripts/texlive/tlmgr.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/Master/texmf/scripts/texlive/tlmgr.pl b/Master/texmf/scripts/texlive/tlmgr.pl
index e111d4de845..c7781fb134e 100755
--- a/Master/texmf/scripts/texlive/tlmgr.pl
+++ b/Master/texmf/scripts/texlive/tlmgr.pl
@@ -1339,11 +1339,11 @@ sub action_arch {
if ($opt_gui) {
action_gui("arch");
}
- my $what = shift @ARGV;
my %ret;
my $opt_dry = 0;
Getopt::Long::Configure(qw(no_pass_through));
GetOptions("dry-run" => \$opt_dry) or pod2usage(2);
+ my $what = shift @ARGV;
init_local_db(1);
$what || ($what = "list");
if ($what =~ m/^list$/i) {
@@ -1418,11 +1418,11 @@ sub action_arch {
}
sub action_generate {
- my $what = shift @ARGV;
my $localconf = "";
my $dest = "";
Getopt::Long::Configure(qw(no_pass_through));
GetOptions("localcfg=s" => \$localconf, "dest=s" => \$dest,) or pod2usage(2);
+ my $what = shift @ARGV;
init_local_db();
my $TEXMFSYSVAR = kpsewhich("TEXMFSYSVAR");