diff options
author | Karl Berry <karl@freefriends.org> | 2019-02-04 21:29:35 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2019-02-04 21:29:35 +0000 |
commit | 08eb7d91bb76a0aff4f084b3eeddc01c863028ae (patch) | |
tree | 0cb13d022c011a97980a0587bc3117d792099623 /Master | |
parent | 99bb16a2a54d677e1c0642f81a2c115726436f08 (diff) |
(dblfile): only use $ENV{'TMPDIR'} if it is set
(and fix unrelated typo);
report at https://github.com/TeX-Live/installer/issues/8.
git-svn-id: svn://tug.org/texlive/trunk@49932 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master')
-rwxr-xr-x | Master/install-tl | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/Master/install-tl b/Master/install-tl index 95356a003fd..249a81bbe83 100755 --- a/Master/install-tl +++ b/Master/install-tl @@ -152,8 +152,9 @@ use strict; # debugging communication with external gui: use shared logfile our $dblfile = "/tmp/dblog"; -$dblfile = $ENV{'TEMP'} . "\\dblog.txt" if ($^O=~/^MSWin/i); -$dblfile = $ENV{'TMPDIR'} . "/dblog" if ($^O eq 'darwin'); +$dblfile = $ENV{'TEMP'} . "\\dblog.txt" if ($^O = ~/^MSWin/i); +$dblfile = $ENV{'TMPDIR'} . "/dblog" if ($^O eq 'darwin' + && exists $ENV{'TMPDIR'}); sub dblog { my $s = shift; open(my $dbf, ">>", $dblfile); @@ -2785,7 +2786,7 @@ the current system are present. The installation will continue as usual, but at the end all files from I<path> are copied over to C<bin/custom/> under your installation directory and this C<bin/custom/> directory is what will be added to the path for the post-install -actions. To install multiple custom binary sets, manully rename +actions. To install multiple custom binary sets, manually rename C<custom> before doing each. For more information on custom binaries, see @@ -3007,7 +3008,7 @@ Enable C<\write18> for a restricted set of programs. B<tlpdb options> (prefix C<tlpdbopt_>) -The definitive list is given in C<tlpkg/TeXLive/TLConfig.pm>, in +The definitive list is given in C<tlpkg/TeXLive/TLConfig.pm>, in the hash C<%TeXLive::TLConfig::TLPDBOptions>, together with explanations. All items given there I<except> for C<tlpdbopt_location> can be specified. Here is the current list: |