Closed Eilon closed 4 years ago
You mean what I already do here?
Sure: I'll apply that to Expand-Template.ps1
as well.
Nevertheless, the link you shared was interesting as they took more care to communicate failure exit codes. Thanks for the tip.
Right now if you run
Expand-Template.ps1
from a CMD window you get the good old Execution Policy error message, and you have to run "cryptic" PowerShell commands to bypass the execution policy. What some people do is add a CMD file that runs the PS1 file with the appropriate bypass option to avoid the error, such as the ASP.NET team's repos: