tusd/examples/hooks/post-receive

9 lines
156 B
Plaintext
Raw Permalink Normal View History

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