mirror of
https://github.com/cmderdev/cmder.git
synced 2025-01-10 08:19:08 +08:00
Support %HOME% variables containing spaces
This commit is contained in:
parent
6106a555fe
commit
ad4a2103ea
@ -38,8 +38,8 @@ REM Functions
|
||||
REM Check if ssh key has to be added
|
||||
:CHECKKEY
|
||||
SET VAR=
|
||||
FOR /f "tokens=*" %%J IN ('ssh-add -l ^| grep soldat_rsa') DO SET VAR=%%J
|
||||
IF "%VAR%" == "" SET KEYS=%KEYS% "%HOME%\.ssh\%1"
|
||||
FOR /f "tokens=*" %%J IN ('ssh-add -l ^| grep "%1"') DO SET VAR=%%J
|
||||
IF "%VAR%" == "" SET KEYS='%HOME%\.ssh\%1' %KEYS%
|
||||
GOTO:EOF
|
||||
|
||||
:END
|
||||
|
Loading…
Reference in New Issue
Block a user