Refresh cmd installer PATH after install
ci / test (push) Canceled after 0s
ci / fuzz-smoke (push) Canceled after 0s
ci / macos-client (macos-aarch64, macos-14) (push) Canceled after 0s
ci / macos-client (macos-x86_64, macos-13) (push) Canceled after 0s
ci / windows-client (push) Canceled after 0s
ci / package-release (linux-x86_64, ubuntu-latest, , , ) (push) Canceled after 0s
ci / package-release (macos-aarch64, macos-14, , , ) (push) Canceled after 0s
ci / package-release (macos-x86_64, macos-13, , , ) (push) Canceled after 0s
ci / package-release (windows-aarch64, windows-latest, aarch64, windows, aarch64-pc-windows-msvc) (push) Canceled after 0s
ci / package-release (windows-x86_64, windows-latest, , , ) (push) Canceled after 0s
ci / remote-bench (push) Canceled after 0s
ci / publish-gitea-release (push) Canceled after 0s

This commit is contained in:
DuProcess
2026-07-16 22:48:04 -04:00
parent 478ecdfb24
commit 4ce1aa4e6d
2 changed files with 21 additions and 2 deletions
+11 -1
View File
@@ -29,4 +29,14 @@ if errorlevel 1 (
"%PS%" -NoProfile -ExecutionPolicy Bypass -File "%TMP_PS%" %*
set "RC=%ERRORLEVEL%"
del "%TMP_PS%" >nul 2>nul
exit /b %RC%
set "DOSH_CMD_PREFIX=%PREFIX%"
if "%DOSH_CMD_PREFIX%"=="" set "DOSH_CMD_PREFIX=%USERPROFILE%\.local"
set "DOSH_CMD_BINDIR=%DOSH_CMD_PREFIX%\bin"
set "DOSH_NEXT_PATH=%PATH%"
if "%RC%"=="0" (
echo ;%PATH%; | find /I ";%DOSH_CMD_BINDIR%;" >nul 2>nul
if errorlevel 1 set "DOSH_NEXT_PATH=%DOSH_CMD_BINDIR%;%PATH%"
)
endlocal & set "PATH=%DOSH_NEXT_PATH%" & exit /b %RC%