mirror of
https://github.com/Lissy93/dotfiles.git
synced 2025-02-13 21:49:13 +01:00
Helper script for uploading files or direcroties via transfer.sh
This commit is contained in:
parent
e8ec5c456e
commit
2a348bda21
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user