2022-01-06 12:31:30 -07:00
|
|
|
#! /bin/sh
|
|
|
|
|
2022-01-06 17:33:25 -07:00
|
|
|
# If you haven't set OUTDIR, set it to the default
|
|
|
|
: ${OUTDIR:=/incoming}
|
|
|
|
export OUTDIR
|
|
|
|
|
2022-01-06 12:31:30 -07:00
|
|
|
log () {
|
|
|
|
printf "\033[36m=== [%s] \033[0m %s\n" "$0" "$*"
|
|
|
|
}
|
|
|
|
|
2022-01-06 17:33:25 -07:00
|
|
|
status () {
|
|
|
|
task=$1
|
|
|
|
status=$2
|
|
|
|
|
|
|
|
echo "$status" > $OUTDIR/status.$task
|
|
|
|
}
|
|
|
|
|