tusd/.hooks/pre-create

8 lines
141 B
Plaintext
Raw Permalink Normal View History

#!/bin/bash
filename=$(cat /dev/stdin | jq .MetaData.filename)
if [ -z "$filename" ]; then
echo "Error: no filename provided"
exit 1
fi