Files
flameshot/.travis/services/transfer.sh.sh
Ahmed Zetao Yang cb59757848 improve CI upload service (#514)
*  improve CI upload service 
*  fedora 29 supported
*  fedora 27 removed
*  ubuntu 19.04 supported
2019-04-28 13:28:18 +02:00

19 lines
278 B
Bash

#!/bin/sh
URL="https://transfer.sh"
if [ $# -eq 0 ]; then
echo "Usage: transfer.sh FILE\n"
exit 1
fi
FILE=$1
if [ ! -f "$FILE" ]; then
echo "File ${FILE} not found"
exit 1
fi
RESPONSE=$(curl -# -F "file=@${FILE}" "${URL}")
echo "${RESPONSE}" # to terminal