mirror of
https://github.com/mintty/wsltty.git
synced 2025-01-18 20:10:58 +00:00
additional quoting for CMD variables (#213)
This commit is contained in:
parent
40fe1db02c
commit
2aace74c9d
@ -5,7 +5,7 @@ case "$installdir" in
|
|||||||
"") custominst=false;;
|
"") custominst=false;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
INSTDIR=${installdir:-$LOCALAPPDATA/wsltty}
|
INSTDIR="${installdir:-$LOCALAPPDATA/wsltty}"
|
||||||
INSTDIR=`cd "$INSTDIR"; pwd`
|
INSTDIR=`cd "$INSTDIR"; pwd`
|
||||||
installdir=${installdir:-'%LOCALAPPDATA%\wsltty'}
|
installdir=${installdir:-'%LOCALAPPDATA%\wsltty'}
|
||||||
|
|
||||||
@ -15,7 +15,7 @@ case "$INSTDIR" in
|
|||||||
*) TARGETPATH="$INSTDIR"/bin/mintty.exe;;
|
*) TARGETPATH="$INSTDIR"/bin/mintty.exe;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
CONFDIR=${configdir:-$APPDATA/wsltty}
|
CONFDIR="${configdir:-$APPDATA/wsltty}"
|
||||||
configdir=${configdir:-'%APPDATA%\wsltty'}
|
configdir=${configdir:-'%APPDATA%\wsltty'}
|
||||||
|
|
||||||
PATH=/bin:"$PATH":$SYSTEMROOT/System32
|
PATH=/bin:"$PATH":$SYSTEMROOT/System32
|
||||||
|
12
install.bat
12
install.bat
@ -1,12 +1,12 @@
|
|||||||
@echo off
|
@echo off
|
||||||
|
|
||||||
set refinstalldir=%%LOCALAPPDATA%%\wsltty
|
set refinstalldir=%%LOCALAPPDATA%%\wsltty
|
||||||
set installdir=%LOCALAPPDATA%\wsltty
|
set installdir="%LOCALAPPDATA%\wsltty"
|
||||||
set refconfigdir=%%APPDATA%%\wsltty
|
set refconfigdir=%%APPDATA%%\wsltty
|
||||||
set configdir=%APPDATA%\wsltty
|
set configdir="%APPDATA%\wsltty"
|
||||||
set oldroot=%installdir%
|
set oldroot="%installdir%"
|
||||||
set oldhomedir=%installdir%\home\%USERNAME%
|
set oldhomedir="%installdir%\home\%USERNAME%"
|
||||||
set oldconfigdir=%oldhomedir%\.config\mintty
|
set oldconfigdir="%oldhomedir%\.config\mintty"
|
||||||
if not "%1" == "" set refinstalldir=%1 && set installdir=%1
|
if not "%1" == "" set refinstalldir=%1 && set installdir=%1
|
||||||
if not "%2" == "" set refconfigdir=%2 && set configdir=%2
|
if not "%2" == "" set refconfigdir=%2 && set configdir=%2
|
||||||
|
|
||||||
@ -79,7 +79,7 @@ copy mintty.ico "%installdir%\usr\share\mintty\icon"
|
|||||||
|
|
||||||
|
|
||||||
rem create Start Menu Folder
|
rem create Start Menu Folder
|
||||||
set smf=%APPDATA%\Microsoft\Windows\Start Menu\Programs\WSLtty
|
set smf="%APPDATA%\Microsoft\Windows\Start Menu\Programs\WSLtty"
|
||||||
mkdir "%smf%"
|
mkdir "%smf%"
|
||||||
|
|
||||||
rem clean up previous installation
|
rem clean up previous installation
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
@echo off
|
@echo off
|
||||||
|
|
||||||
if "%installdir%" == "" set installdir=%LOCALAPPDATA%\wsltty
|
if "%installdir%" == "" set installdir="%LOCALAPPDATA%\wsltty"
|
||||||
|
|
||||||
|
|
||||||
:shortcuts
|
:shortcuts
|
||||||
|
|
||||||
rem delete Start Menu Folder
|
rem delete Start Menu Folder
|
||||||
set smf=%APPDATA%\Microsoft\Windows\Start Menu\Programs\WSLtty
|
set smf="%APPDATA%\Microsoft\Windows\Start Menu\Programs\WSLtty"
|
||||||
rmdir /S /Q "%smf%"
|
rmdir /S /Q "%smf%"
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user