Convert bat to powershell: diffing

This commit is contained in:
Dan Hawkins 2021-07-01 08:45:14 +01:00
commit f0b0a3a0c1

View file

@ -10,10 +10,10 @@ def comparefiles(importedfile, currentfile, boolean ignorewhitespace = true) {
}
else {
// diffutils can be installed on windows with chocolatey
bat """
REM echo Checking utilities exist
where diff
if errorlevel 1 EXIT /b 1
powershell """
# echo Checking utilities exist
# where diff
# if errorlevel 1 EXIT /b 1
diff -c ${wsparameter} "${importedfile}" "${currentfile}"
"""