From 055270addc35ceab27d791e350e76aec5bee4560 Mon Sep 17 00:00:00 2001 From: Dan Hawkins Date: Thu, 1 Jul 2021 07:31:15 +0100 Subject: [PATCH] Convert bat to powershell: diffing --- differences/json.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/differences/json.groovy b/differences/json.groovy index b195883..853e0e0 100644 --- a/differences/json.groovy +++ b/differences/json.groovy @@ -41,7 +41,7 @@ def comparefiles(importedjsonfile, currentjsonfile) { \$str2 = Get-Content "temp2.txt" \$diffed = Compare-Object \$str1 \$str2 if (\$diffed -ne '') { - Write-Output "Difference between JSON files: \$diffed" + Write-Host "Difference between JSON files: " \$diffed exit 1 }