mirror of
https://github.com/Lissy93/dotfiles.git
synced 2025-06-28 21:01:20 +02: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
|
# Determine the type of transfer, and call appropriate function
|
||||||
transfer () {
|
transfer () {
|
||||||
FILE_TRANSFER_SERVICE="${FILE_TRANSFER_SERVICE:=https://transfer.sh}"
|
FILE_TRANSFER_SERVICE="${FILE_TRANSFER_SERVICE:=https://transfer.sh}"
|
||||||
|
if [[ $@ == *"--help" ]] transfer-help && return
|
||||||
TMP_FILE="/tmp/file-transfer-$(date +%s).zip"
|
TMP_FILE="/tmp/file-transfer-$(date +%s).zip"
|
||||||
if [ -z "$1" ]; then
|
if [ -z "$1" ]; then
|
||||||
transfer-help
|
transfer-help
|
||||||
|
Loading…
x
Reference in New Issue
Block a user