1
0
mirror of https://github.com/mintty/wsltty.git synced 2024-10-05 18:31:04 +01:00

installer: support customized install dirs via environment vars (#304)

This commit is contained in:
mintty 2022-02-28 00:00:00 +01:00
parent ea570a191e
commit 5cee2c341b

View File

@ -1,8 +1,10 @@
@echo off
set refinstalldir=%%LOCALAPPDATA%%\wsltty
set installdir="%LOCALAPPDATA%\wsltty"
set refconfigdir=%%APPDATA%%\wsltty
if "%installdir%" == "" set installdir="%LOCALAPPDATA%\wsltty"
if "%configdir%" == "" set configdir="%APPDATA%\wsltty"
set installdir="%LOCALAPPDATA%\wsltty"
set configdir="%APPDATA%\wsltty"
call dequote installdir
call dequote configdir