From: Gabriele 'matrix' Gristina Date: Sun, 24 Jan 2016 16:31:31 +0000 (+0100) Subject: Updated test.sh (support for osx and some fixes) X-Git-Tag: v3.00-beta~454^2~2 X-Git-Url: https://www.flypig.org.uk/git/?a=commitdiff_plain;h=f00617f992cbe0014c6a98be3296d1eaff9f826a;hp=58359f3b7e0ba14305820b39aca6d0b539845adc;p=hashcat.git Updated test.sh (support for osx and some fixes) --- diff --git a/tools/test.sh b/tools/test.sh index 80682f7..918b985 100755 --- a/tools/test.sh +++ b/tools/test.sh @@ -294,7 +294,7 @@ function status() ;; *) - echo "! unhandled return code ${RET}, cmdline : ${CMD}" $>> ${OUTD}/logfull.txt + echo "! unhandled return code ${RET}, cmdline : ${CMD}" &>> ${OUTD}/logfull.txt echo "! unhandled return code, see ${OUTD}/logfull.txt for details." ((e_nf++)) ;; @@ -1544,6 +1544,7 @@ OPTIONS: -o Select operating system : 'win' => windows operating system (use .exe file extension etc) 'linux' => *nix based operating systems (.bin for binaries) + 'osx' => mac osx operating systems (.app for binaries) -c Disables markov-chains @@ -1635,6 +1636,8 @@ while getopts "t:m:a:b:hcpd:x:o:" opt; do EXTENSION="exe" elif [ ${OPTARG} == "linux" ]; then EXTENSION="bin" + elif [ ${OPTARG} == "osx" ]; then + EXTENSION="app" else usage fi @@ -1653,13 +1656,13 @@ done if [ -n "${ARCHITECTURE}" ]; then - BIN=$( echo ${BIN} | sed "s!64!${ARCHITECTURE}!" ) + BIN="${BIN}${ARCHITECTURE}" fi if [ -n "${EXTENSION}" ]; then - BIN=$( echo ${BIN} | sed "s!\.bin!\.${EXTENSION}!" ) + BIN="${BIN}.${EXTENSION}" fi