There was an error while loading. Please reload this page.
1 parent 88b2a57 commit 9e004ecCopy full SHA for 9e004ec
1 file changed
packages/openssl/test.bat
@@ -1,9 +1,9 @@
1
echo I hashed the previous version of this script, unfortunately the hash was my only backup. Whoops! > test.txt
2
3
REM This hash does not match the hash on Unix, due to line ending differences
4
-set "expected_output=SHA2-256(stdin)= a6a6ac959ebea1f5ec010438e2ccec6fbc73f1cc53797a02ae6cbf3cd9477e9a"
+set "expected_output=a6a6ac959ebea1f5ec010438e2ccec6fbc73f1cc53797a02ae6cbf3cd9477e9a"
5
6
-for /f "usebackq delims=" %%A in (`"%PACKIT_PACKAGE_PATH%\bin\openssl.exe" sha256 -hex ^< test.txt`) do set "output=%%A"
+for /f "tokens=2 usebackq" %%A in (`"%PACKIT_PACKAGE_PATH%\bin\openssl.exe" sha256 -hex ^< test.txt`) do set "output=%%A"
7
if ERRORLEVEL 1 (
8
echo Test failed: openssl command exited with code %ERRORLEVEL%
9
exit /b 1
0 commit comments