1
0
mirror of https://github.com/hashcat/hashcat.git synced 2025-02-22 12:32:04 +00:00

appveyor: fix cd paths to make it work with both cygwin and msys

This commit is contained in:
philsmd 2018-01-26 15:00:11 +01:00
parent caa5c052ec
commit 9d7aecef02
No known key found for this signature in database
GPG Key ID: 4F25D016D9D6A8AF

View File

@ -46,13 +46,11 @@ test_script:
# 1. hash file should not exist and therefore hashcat should complain (if it does not there might be a problem) # 1. hash file should not exist and therefore hashcat should complain (if it does not there might be a problem)
# 2. hash file should expand to example0.hash and succeed # 2. hash file should expand to example0.hash and succeed
- ps: >- - ps: >-
cd $env:APPVEYOR_BUILD_FOLDER & $env:BASH -lc "cd '$env:APPVEYOR_BUILD_FOLDER' && ./hashcat.exe -m 0 --show *file_not_found.hash" 2>&1 | out-null
& $env:BASH -c "./hashcat.exe -m 0 --show *file_not_found.hash" 2>&1 | out-null
if ($LastExitCode -eq 0) if ($LastExitCode -eq 0)
{ {
throw "test failed" throw "test failed"
} }
& $env:BASH -c "./hashcat.exe -m 0 --show *ple0.hash" & $env:BASH -lc "cd '$env:APPVEYOR_BUILD_FOLDER' && ./hashcat.exe -m 0 --show *ple0.hash"