Fix corrupted Windows batch wrapper (scripts/apply_and_create_pr.bat)
From 5994a3c59d4844ff1564e5c1f2bbe0a33380a615 Mon Sep 17 00:00:00 2001 From: anttradeoff-lang [email protected] Date: Sun, 21 Dec 2025 09:53:16 +0000 Subject: [PATCH] scripts: fix corrupted Windows batch wrapper
--- a/scripts/apply_and_create_pr.bat +++ b/scripts/apply_and_create_pr.bat @@ -12,11 +12,10 @@ REM scripts\apply_and_create_pr.bat -Dry Run -> shows actions without makin
-ENDLOCAL) powershell -NoProfile -ExecutionPolicy Bypass -Fil e %PS1% %) ELSE ( pwsh -NoProfile -ExecutionPolicy Bypass -File %PS1% % -nREM Forward all args to PowerShell. Use modern PowerShell (pws h) if available, otherwise use Windows PowerShell. -nwhere pwsh >nul 2>&1 -nIF %ERRORLEVEL% EQU 0 (nSETLOCAL ENABLEDELAYEDEXPANSION -n -nREM Resolve the script folder and build the path to the PS1 -nSET SCRIPT_DIR=%~dp0 -nSET PS1="%SCRIPT_DIR%apply_and_create_pr.ps1" \ No newline at end of file +REM Forward all args to PowerShell. Use modern PowerShell (pwsh ) if available, otherwise use Windows PowerShell. +where pwsh >nul 2>&1 +IF %ERRORLEVEL% EQU 0 (
- pwsh -NoProfile -ExecutionPolicy Bypass -File "%~dp0apply_a +nd_create_pr.ps1" %* +) ELSE (
- powershell -NoProfile -ExecutionPolicy Bypass -File "%~dp0a +pply_and_create_pr.ps1" %* +)
-- 2.39.2