media-sucker/scripts/common.sh

18 lines
244 B
Bash
Executable File

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