Skip to content

Commit

Permalink
start.cmd: fixed execution policy restriction due to accidental removal.
Browse files Browse the repository at this point in the history
For some reason, commit d64c62f
accidentally removed the bypass execution policy causing an immediate
denial of use in new Windows system. Hence, we need to restore it back.

This patch restores and fixes execution policy restriction due to
accidental removal in the previous patch.

Reported-by: Shuralyov, Jean <jean.shuralyov@proton.me>
Co-authored-by: Shuralyov, Jean <jean.shuralyov@proton.me>
Co-authored-by: (Holloway) Chew, Kean Ho <hollowaykeanho@gmail.com>
Signed-off-by: (Holloway) Chew, Kean Ho <hollowaykeanho@gmail.com>
  • Loading branch information
hollowaykeanho and JeanShuralyov committed Jun 20, 2023
1 parent 3d16ef7 commit def344c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions start.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,13 @@ set _parameters=%*
set _parameters=!_parameters:--=-!
set _parameters=!_parameters:input=path!
set _parameters=!_parameters:"=\"!
call Powershell.exe -NoProfile -Command "& '%location%' %_parameters%"
call Powershell.exe -NoProfile -executionpolicy bypass -Command "& '%location%' %_parameters%"
EXIT /B

:empty
set location=%~dp0init\windows.ps1
set location="%location%"
call Powershell.exe -NoProfile -Command "& '%location%'"
call Powershell.exe -NoProfile -executionpolicy bypass -Command "& '%location%'"
::##############################################################################
:: Windows Main Codes #
::##############################################################################

0 comments on commit def344c

Please sign in to comment.