removed hardcoding
This commit is contained in:
parent
ea43ad9b6a
commit
0ce30c8cf1
@ -73,27 +73,27 @@ if %ERRORLEVEL% NEQ 0 (
|
||||
)
|
||||
|
||||
rem Totalcommander ini file ...
|
||||
if EXIST %GITWORKDIR%\personal\WINCMD.ini (
|
||||
if EXIST %GITWORKDIR%\%gitrepo%\WINCMD.ini (
|
||||
echo copying ini file for TOTALCOMMANDER ...
|
||||
copy /Y %GITWORKDIR%\personal\WINCMD.ini %APPDATA%\GHISLER
|
||||
copy /Y %GITWORKDIR%\%gitrepo%\WINCMD.ini %APPDATA%\GHISLER
|
||||
)
|
||||
|
||||
rem Totalcommander ftp config ...
|
||||
if EXIST %GITWORKDIR%\personal\wcx_ftp.ini (
|
||||
if EXIST %GITWORKDIR%\%gitrepo%\wcx_ftp.ini (
|
||||
echo copying TOTALCOMMANDER ftp config file ...
|
||||
copy /Y %GITWORKDIR%\personal\wcx_ftp.ini %APPDATA%\GHISLER
|
||||
copy /Y %GITWORKDIR%\%gitrepo%\wcx_ftp.ini %APPDATA%\GHISLER
|
||||
)
|
||||
|
||||
rem SSH keys ...
|
||||
if EXIST %GITWORKDIR%\personal (
|
||||
echo copying personal SSH keys ...
|
||||
copy /Y %GITWORKDIR%\personal\id*.* %USERPROFILE%\.ssh 2>nul
|
||||
if EXIST %GITWORKDIR%\%gitrepo% (
|
||||
echo copying users SSH keys ...
|
||||
copy /Y %GITWORKDIR%\%gitrepo%\id*.* %USERPROFILE%\.ssh 2>nul
|
||||
)
|
||||
|
||||
rem GIT
|
||||
if EXIST %GITWORKDIR%\personal\gitconfig (
|
||||
echo copying gitconfig ...
|
||||
copy /Y %GITWORKDIR%\personal\gitconfig %USERPROFILE%\.gitconfig
|
||||
if EXIST %GITWORKDIR%\%gitrepo%\gitconfig (
|
||||
echo copying users gitconfig ...
|
||||
copy /Y %GITWORKDIR%\%gitrepo%\gitconfig %USERPROFILE%\.gitconfig
|
||||
)
|
||||
|
||||
rem create a statusfile (this codeblock must be executed only once per user) ...
|
||||
|
Loading…
Reference in New Issue
Block a user