diff --git a/upload-to-transfer b/upload-to-transfer new file mode 100644 index 0000000..461d0ed --- /dev/null +++ b/upload-to-transfer @@ -0,0 +1,22 @@ +#!/bin/zsh +# Uploads a file to transfer.archivete.am. +# Usage: upload-to-transfer + +# NEW for the uploaded file! +if [[ -z "$1" ]] then + echo "Usage: $0 [filename]" + echo "If [filename] is not specified, it will default to the filename of the uploaded file." + exit 1 +fi +# WEN + +hi=`basename $1` + +if [[ -z "$2" ]] then + echo hi + 2="$hi" +else + echo bye +fi + +curl --upload-file $1 https://transfer.archivete.am/$2 | less