mirror of
https://github.com/cmderdev/cmder.git
synced 2025-01-10 16:29: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
|
REM Check if ssh key has to be added
|
||||||
:CHECKKEY
|
:CHECKKEY
|
||||||
SET VAR=
|
SET VAR=
|
||||||
FOR /f "tokens=*" %%J IN ('ssh-add -l ^| grep soldat_rsa') DO SET VAR=%%J
|
FOR /f "tokens=*" %%J IN ('ssh-add -l ^| grep "%1"') DO SET VAR=%%J
|
||||||
IF "%VAR%" == "" SET KEYS=%KEYS% "%HOME%\.ssh\%1"
|
IF "%VAR%" == "" SET KEYS='%HOME%\.ssh\%1' %KEYS%
|
||||||
GOTO:EOF
|
GOTO:EOF
|
||||||
|
|
||||||
:END
|
:END
|
||||||
|
Loading…
Reference in New Issue
Block a user