Helper script for uploading files or direcroties via transfer.sh

This commit is contained in:
Alicia Sykes 2022-08-06 12:36:48 +01:00
parent e8ec5c456e
commit 2a348bda21

View File

@ -27,6 +27,7 @@ transfer-directory () {
# Determine the type of transfer, and call appropriate function
transfer () {
FILE_TRANSFER_SERVICE="${FILE_TRANSFER_SERVICE:=https://transfer.sh}"
if [[ $@ == *"--help" ]] transfer-help && return
TMP_FILE="/tmp/file-transfer-$(date +%s).zip"
if [ -z "$1" ]; then
transfer-help