Skip to content
This repository was archived by the owner on Dec 18, 2017. It is now read-only.

Commit d63b199

Browse files
committed
Disable progress indicator when script is run in Azure
1 parent d746e8b commit d63b199

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/dnvm.ps1

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
#Requires -Version 3
22

3+
if (Test-Path env:WEBSITE_SITE_NAME)
4+
{
5+
# This script is run in Azure Web Sites
6+
# Disable progress indicator
7+
$ProgressPreference = "SilentlyContinue"
8+
}
9+
310
$ScriptPath = $MyInvocation.MyCommand.Definition
411

512
$Script:UseWriteHost = $true

0 commit comments

Comments
 (0)