Skip to content

Commit

Permalink
clarify the comment, i.e., users can set the env var TINYTEX_DIR to s…
Browse files Browse the repository at this point in the history
…pecify the installation directory of TinyTeX
  • Loading branch information
yihui committed Nov 17, 2023
1 parent 3c34097 commit d0e7665
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/install-bin-windows.bat
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ for /d %%G in ("TinyTeX*") do rd /s /q "%%~G"

if not defined TINYTEX_INSTALLER set TINYTEX_INSTALLER=TinyTeX-1

rem install to APPDATA by default if it doesn't contain spaces or non-ASCII chars, otherwise use ProgramData
rem install to TINYTEX_DIR, which is APPDATA by default if it doesn't contain spaces or non-ASCII chars, otherwise use ProgramData
if not defined TINYTEX_DIR (
set TINYTEX_DIR=%APPDATA%
powershell -Command "if ($Env:APPDATA -match '^[!-~]+$') {exit 0} else {exit 1}" || set TINYTEX_DIR=%ProgramData%
Expand Down

0 comments on commit d0e7665

Please sign in to comment.