diff options
author | Norbert Preining <norbert@preining.info> | 2022-05-24 08:25:08 +0900 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2022-06-06 08:18:56 +0900 |
commit | 4f2710ca193f06720b768ea2e46b5f1611c39cfb (patch) | |
tree | c2f41fd42c7b238df829d4c5ee168208b27c6725 /Master/install-tl | |
parent | ec738ee7ddadcc3854de750b368d2bbe6c400d8f (diff) |
Unify homedir and tilde expansion
Diffstat (limited to 'Master/install-tl')
-rwxr-xr-x | Master/install-tl | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Master/install-tl b/Master/install-tl index 43fb7271bd7..44748078016 100755 --- a/Master/install-tl +++ b/Master/install-tl @@ -309,7 +309,7 @@ our $opt_in_place = 0; my $opt_verify_downloads; # debug options my $opt_debug_fakenet = 0; -my $opt_debug_setup_vars = 1; +my $opt_debug_setup_vars = 0; # show all options even those not relevant for that arch $::opt_all_options = 0; @@ -956,6 +956,10 @@ sub do_installation { && $vars{'n_collections_selected'} <= 0) { tldie("$0: Nothing selected, nothing to install, exiting!\n"); } + # expand ~ in various variables just to be sure + for my $v (qw/TEXDIR TEXMFLOCAL TEXMFSYSVAR TEXMFSYSCONFIG TEXMFHOME TEXMFVAR TEXMFCONFIG/) { + $vars{$v} = TeXLive::TLUtils::expand_tilde($vars{$v}) if ($vars{$v}); + } # maybe_make_ro tests for admin, local drive and NTFS before proceeding. # making the root read-only automatically locks everything below it. # do TEXDIR now, before it loses its final slash |