aboutsummaryrefslogtreecommitdiff
path: root/bin/upload
blob: 877a8ff5b583e5e0fb4f884363ec380caa72a7ea (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh
set -eu

cd "${LIVEDIR:-$HOME/Public/live/}"
for f in queue/*.webm; do
	if [ "$f" = 'queue/*.webm' ]; then
		break
	fi

	rsync -avP -- "$f" toph:lives/
	day=data/"$(basename -- "$f" .webm)"
	echo rm -rf "$day"/
	rm -rf "$day"/
	rm -v "$f"
done