Prevent sleep mode for all actions
This commit is contained in:
parent
9c02d8913f
commit
e3e998a4a4
2 changed files with 2 additions and 1 deletions
scripts/Windows/Scripts
|
@ -1,7 +1,9 @@
|
|||
#!/bin/pwsh
|
||||
. "$PSScriptRoot/Context.ps1";
|
||||
$Global:InformationPreference = "Continue";
|
||||
$Global:ErrorActionPreference = "Inquire";
|
||||
|
||||
[Context]::new().PreventSleepMode();
|
||||
$null = powershell -c Get-PackageProvider -ListAvailable NuGet;
|
||||
|
||||
if (-not $?) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue