Convert bat to powershell: diffing

This commit is contained in:
Dan Hawkins 2021-07-01 07:31:15 +01:00
commit 055270addc

View file

@ -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
}