From fa9fb620a74ed966ced1728ed6d37afe9e176e56 Mon Sep 17 00:00:00 2001 From: Dan Hawkins Date: Thu, 1 Jul 2021 00:11:43 +0100 Subject: [PATCH] Convert bat to powershell; Remove debug --- differences/json.groovy | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/differences/json.groovy b/differences/json.groovy index 1b95c7b..800f62c 100644 --- a/differences/json.groovy +++ b/differences/json.groovy @@ -37,12 +37,12 @@ def comparefiles(importedjsonfile, currentjsonfile) { if (\$lastexitcode -ge 1) { exit 1 } # echo Diffing sorted json files - $str1 = Get-Content "temp1.txt" - $str2 = Get-Content "temp2.txt" - $diff = Compare-Object $str1 $str2 - if ($diff -ne '') { + \$str1 = Get-Content "temp1.txt" + \$str2 = Get-Content "temp2.txt" + \$diff = Compare-Object \$str1 \$str2 + if (\$diff -ne '') { echo "Difference between JSON files:" - echo $diff + echo \$diff exit 1 }