File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -128,8 +128,14 @@ exit /b
128128
129129 :toolong
130130 set " _rand = %RANDOM% "
131+ if exist " %temp% \%_rand% _cmder_lib_pathA" del " %temp% \%_rand% _cmder_lib_pathA" 2 > nul 1 > nul
132+ if exist " %temp% \%_rand% _cmder_lib_pathB" del " %temp% \%_rand% _cmder_lib_pathB" 2 > nul 1 > nul
133+ if exist " %temp% \%_rand% _cmder_lib_pathA" goto :toolong
134+ if exist " %temp% \%_rand% _cmder_lib_pathB" goto :toolong
131135 echo " %OLD_PATH% " > " %temp% \%_rand% _cmder_lib_pathA"
136+ if errorlevel 1 ( if exist " %temp% \%_rand% _cmder_lib_pathA" del " %temp% \%_rand% _cmder_lib_pathA" & goto :toolong )
132137 echo " %PATH% " > " %temp% \%_rand% _cmder_lib_pathB"
138+ if errorlevel 1 ( if exist " %temp% \%_rand% _cmder_lib_pathA" del " %temp% \%_rand% _cmder_lib_pathA" & if exist " %temp% \%_cmder_lib_pathB" del "% temp%\% _rand%_cmder_lib_pathB" & goto :toolong )
133139 fc /b " %temp% \%_rand% _cmder_lib_pathA" " %temp% \%_rand% _cmder_lib_pathB" 2 > nul 1 > nul
134140 if errorlevel 1 ( del " %temp% \%_rand% _cmder_lib_pathA" & del " %temp% \%_rand% _cmder_lib_pathB" & set " _rand = " & goto :changed )
135141 del " %temp% \%_rand% _cmder_lib_pathA" & del " %temp% \%_rand% _cmder_lib_pathB" & set " _rand = "
You can’t perform that action at this time.
0 commit comments