diff --git a/tools/logon.cmd b/tools/logon.cmd index f47cd70..0fec43d 100644 --- a/tools/logon.cmd +++ b/tools/logon.cmd @@ -539,10 +539,15 @@ if "%HOMEDRIVE%%HOMEPATH%" NEQ "%USERPROFILE%" ( echo Setting up SSH client config for the domain drive ... mkdir "%HOMEDRIVE%\%HOMEPATH%"\.ssh 1>nul 2>nul - copy /Y %TOOLS%\scripts\config\ssh-config.txt "%HOMEDRIVE%%HOMEPATH%"\.ssh\config 1>nul 2>nul + if NOT EXIST "%HOMEDRIVE%%HOMEPATH%"\.ssh\config ( + copy /Y %TOOLS%\scripts\config\ssh-config.txt "%HOMEDRIVE%%HOMEPATH%"\.ssh\config 1>nul 2>nul + ) echo Installing a VIM configuration for the domain drive ... - copy /Y %TOOLS%\scripts\config\vimrc.txt "%HOMEDRIVE%%HOMEPATH%"\.vimrc 1>nul 2>nul + if NOT EXIST "%HOMEDRIVE%%HOMEPATH%"\.vimrc ( + copy /Y %TOOLS%\scripts\config\vimrc.txt "%HOMEDRIVE%%HOMEPATH%"\.vimrc 1>nul 2>nul + ) + ) echo.