From dae4379ad74252858742be233cb36a2f6dbcb599 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois?= Date: Sun, 17 Sep 2023 17:20:08 +0200 Subject: [PATCH] fix2 filterTest.sh --- src/bash/filterTest.sh | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/bash/filterTest.sh b/src/bash/filterTest.sh index f2ec0ec..6761bb8 100755 --- a/src/bash/filterTest.sh +++ b/src/bash/filterTest.sh @@ -59,13 +59,6 @@ usage () { exit 1 } -######################################## -# recherche des binaires -cd $(dirname $0) -eMailShrinker="$(realpath "./eMailShrinker")" -[ -x "${eMailShrinker}" ] || eMailShrinker="$(realpath "../../build/out/eMailShrinker")" -[ -x "${eMailShrinker}" ] || ( echo "${RED}eMailShrinker not found${NC}" ; exit) - while : ; do case "$1" in -h*) usage;; @@ -83,9 +76,16 @@ esac [ -z "${ATTACH_MODE}" ] || ATTACH_MODE="-m ${ATTACH_MODE}" [ "$#" -eq 1 ] || usage +mbox=$(realpath "$1") + +######################################## +# recherche des binaires +cd $(dirname $0) +eMailShrinker="$(realpath "./eMailShrinker")" +[ -x "${eMailShrinker}" ] || eMailShrinker="$(realpath "../../build/out/eMailShrinker")" +[ -x "${eMailShrinker}" ] || ( echo "${RED}eMailShrinker not found${NC}" ; exit) ######################################## -mbox=$(realpath "$1") dos2unix "${mbox}" DOMAINNAME="$(cat domainname)" JIRAFEAU_URL="https://depot.${DOMAINNAME}"