File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -127,11 +127,12 @@ exit /b
127127 exit /b
128128
129129 :toolong
130- echo " %OLD_PATH% " > " %temp% \cmder_lib_pathA"
131- echo " %PATH% " > " %temp% \cmder_lib_pathB"
132- fc /b " %temp% \cmder_lib_pathA" " %temp% \cmder_lib_pathB" 2 > nul 1 > nul
133- if errorlevel 1 ( del " %temp% \cmder_lib_pathA" & del " %temp% \cmder_lib_pathB" & goto :changed )
134- del " %temp% \cmder_lib_pathA" & del " %temp% \cmder_lib_pathB"
130+ set " _rand = %RANDOM% "
131+ echo " %OLD_PATH% " > " %temp% \%_rand% _cmder_lib_pathA"
132+ echo " %PATH% " > " %temp% \%_rand% _cmder_lib_pathB"
133+ fc /b " %temp% \%_rand% _cmder_lib_pathA" " %temp% \%_rand% _cmder_lib_pathB" 2 > nul 1 > nul
134+ if errorlevel 1 ( del " %temp% \%_rand% _cmder_lib_pathA" & del " %temp% \%_rand% _cmder_lib_pathB" & set " _rand = " & goto :changed )
135+ del " %temp% \%_rand% _cmder_lib_pathA" & del " %temp% \%_rand% _cmder_lib_pathB" & set " _rand = "
135136 exit /b
136137
137138 :changed
You can’t perform that action at this time.
0 commit comments