#! /bin/sh log () { printf "\033[36m=== [%s] \033[0m %s\n" "$0" "$*" } # If you haven't set OUTDIR, set it to the default : ${OUTDIR:=/incoming} export OUTDIR