Skip to content

Commit 3e0bb26

Browse files
committed
Simplifying Powershell script examples
1 parent f88a807 commit 3e0bb26

File tree

2 files changed

+5
-5
lines changed
  • sample/QueueTrigger-Powershell
  • test/WebJobs.Script.Tests/TestScripts/Powershell/QueueTriggerToBlob

2 files changed

+5
-5
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
$in = [System.Console]::ReadLine()
1+
$in = [Console]::ReadLine()
22

3-
[System.Console]::WriteLine("Powershell script processed queue message: '$in'")
3+
[Console]::WriteLine("Powershell script processed queue message '$in'")
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
$in = [System.Console]::ReadLine()
1+
$in = [Console]::ReadLine()
22

3-
[System.Console]::WriteLine("Powershell script processed queue message '$in'")
3+
[Console]::WriteLine("Powershell script processed queue message '$in'")
44

5-
$output = (Get-Item Env:output).Value
5+
$output = $Env:output
66
$in | Out-File -Encoding Ascii $output

0 commit comments

Comments
 (0)