texlive[57562] Master/bin/win32/tlmgr.bat: Test for any argument; add

commits+siepo at tug.org commits+siepo at tug.org
Sat Jan 30 21:00:41 CET 2021


Revision: 57562
          http://tug.org/svn/texlive?view=revision&revision=57562
Author:   siepo
Date:     2021-01-30 21:00:41 +0100 (Sat, 30 Jan 2021)
Log Message:
-----------
Test for any argument; add pause statement

Modified Paths:
--------------
    trunk/Master/bin/win32/tlmgr.bat

Modified: trunk/Master/bin/win32/tlmgr.bat
===================================================================
--- trunk/Master/bin/win32/tlmgr.bat	2021-01-30 06:52:36 UTC (rev 57561)
+++ trunk/Master/bin/win32/tlmgr.bat	2021-01-30 20:00:41 UTC (rev 57562)
@@ -11,6 +11,9 @@
 set tlroot=%~dp0:
 set tlroot=%tlroot:\bin\win32\:=%
 
+rem check for any argument
+if x == x%1 goto noargs
+
 rem check for gui argument
 set args=
 
@@ -55,6 +58,10 @@
 echo %~nx0: failed to rename "%tlupdater%">&2
 exit /b 1
 
+:noargs
+echo No arguments given!
+
 :guibailout
-echo Please use tlshell as a GUI for tlmgr
+echo Use tlshell as a GUI for tlmgr.
+pause
 exit /b 1



More information about the tex-live-commits mailing list.