From 9d7aecef02dd175386a5116b18de33c2f93a21b3 Mon Sep 17 00:00:00 2001 From: philsmd Date: Fri, 26 Jan 2018 15:00:11 +0100 Subject: [PATCH] appveyor: fix cd paths to make it work with both cygwin and msys --- .appveyor.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.appveyor.yml b/.appveyor.yml index ec92e71a4..bf9da44e1 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -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) # 2. hash file should expand to example0.hash and succeed - ps: >- - cd $env:APPVEYOR_BUILD_FOLDER - - & $env:BASH -c "./hashcat.exe -m 0 --show *file_not_found.hash" 2>&1 | out-null + & $env:BASH -lc "cd '$env:APPVEYOR_BUILD_FOLDER' && ./hashcat.exe -m 0 --show *file_not_found.hash" 2>&1 | out-null if ($LastExitCode -eq 0) { 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"