fix2 filterTest.sh

This commit is contained in:
François 2023-09-17 17:20:08 +02:00
parent 35a22de854
commit dae4379ad7

View File

@ -59,13 +59,6 @@ usage () {
exit 1 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 while : ; do
case "$1" in case "$1" in
-h*) usage;; -h*) usage;;
@ -83,9 +76,16 @@ esac
[ -z "${ATTACH_MODE}" ] || ATTACH_MODE="-m ${ATTACH_MODE}" [ -z "${ATTACH_MODE}" ] || ATTACH_MODE="-m ${ATTACH_MODE}"
[ "$#" -eq 1 ] || usage [ "$#" -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}" dos2unix "${mbox}"
DOMAINNAME="$(cat domainname)" DOMAINNAME="$(cat domainname)"
JIRAFEAU_URL="https://depot.${DOMAINNAME}" JIRAFEAU_URL="https://depot.${DOMAINNAME}"