[latex3-commits] [git/LaTeX3-latex3-l3build] ctan-post: local variable should be inside function (f28c230)

Will Robertson wspr81 at gmail.com
Tue Dec 18 01:10:50 CET 2018


Repository : https://github.com/latex3/l3build
On branch  : ctan-post
Link       : https://github.com/latex3/l3build/commit/f28c2300c8b01502e2699c8cf3061d60f776a909

>---------------------------------------------------------------

commit f28c2300c8b01502e2699c8cf3061d60f776a909
Author: Will Robertson <wspr81 at gmail.com>
Date:   Tue Dec 18 10:40:50 2018 +1030

    local variable should be inside function


>---------------------------------------------------------------

f28c2300c8b01502e2699c8cf3061d60f776a909
 l3build-upload.lua |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/l3build-upload.lua b/l3build-upload.lua
index 289574e..68692b0 100644
--- a/l3build-upload.lua
+++ b/l3build-upload.lua
@@ -58,10 +58,10 @@ local ctanupload = ctanupload or "ask"
 -- if upload is anything else, the user will be prompted whether to upload.
 -- For now, this is undocumented. I think I would prefer to keep it always set to ask for the time being.
 
-local uploadfile = ctanzip..".zip"
-
 function upload()
 
+  local uploadfile = ctanzip..".zip"
+
   -- try a sensible default for the package name:
   uploadconfig.pkg = uploadconfig.pkg or ctanpkg or nil
 





More information about the latex3-commits mailing list