Convert bat to powershell; Remove debug
This commit is contained in:
parent
564ed643ca
commit
fa9fb620a7
1 changed files with 5 additions and 5 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue