meow.sh/run

15 lines
352 B
Plaintext
Raw Normal View History

2013-05-25 19:15:43 -07:00
#!/usr/bin/env bash
2013-05-26 11:09:39 -07:00
SRCDIR="$(readlink -f "$(dirname "$0")" )"
2013-05-25 19:15:43 -07:00
prettify() {
while IFS=$SEP read -r title torrent time; do
echo -E "$title"$'\n'"dl:"$'\t'"$torrent"$'\n'"at:"$'\t'"$(date -d @"$time")"
2013-05-25 19:15:43 -07:00
done
}
2013-05-26 11:09:39 -07:00
. "$SRCDIR/meow.sh"
2013-05-25 19:15:43 -07:00
. config.sh
[ -e times.sh ] && { . times.sh; mv times.sh times.sh.old; }
runall | prettify
exit ${PIPESTATUS[0]}