linkie/tools/mimeul

4 lines
135 B
Plaintext
Raw Normal View History

2023-09-18 04:31:21 +00:00
#!/bin/bash
MIME=$(file -i "$1" | cut -f1 -d" " --complement)
curl -H "Authorization: $AUTH_KEY" $DEPLOY_HOST/$2 -F "u=@$1;type=$MIME"