tusd/.hooks/post-receive

9 lines
158 B
Plaintext
Raw Permalink Normal View History

2017-01-26 21:34:14 +00:00
#!/bin/bash
id="$TUS_ID"
offset="$TUS_OFFSET"
size="$TUS_SIZE"
progress=$((100 * $offset/$size))
echo "Upload ${id} is at ${progress}% (${offset}/${size})"