texlive[49932] Master/install-tl: (dblfile): only use $ENV{'TMPDIR'}

commits+karl at tug.org commits+karl at tug.org
Mon Feb 4 22:29:35 CET 2019


Revision: 49932
          http://tug.org/svn/texlive?view=revision&revision=49932
Author:   karl
Date:     2019-02-04 22:29:35 +0100 (Mon, 04 Feb 2019)
Log Message:
-----------
(dblfile): only use $ENV{'TMPDIR'} if it is set
(and fix unrelated typo);
report at https://github.com/TeX-Live/installer/issues/8.

Modified Paths:
--------------
    trunk/Master/install-tl

Modified: trunk/Master/install-tl
===================================================================
--- trunk/Master/install-tl	2019-02-04 01:23:38 UTC (rev 49931)
+++ trunk/Master/install-tl	2019-02-04 21:29:35 UTC (rev 49932)
@@ -152,8 +152,9 @@
 # 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 @@
 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 @@
 
 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:



More information about the tex-live-commits mailing list