diff --git a/code/templates/upload.sh b/code/templates/upload.sh index 3fda3a9..3ba77fc 100644 --- a/code/templates/upload.sh +++ b/code/templates/upload.sh @@ -8,10 +8,10 @@ SHARE="{{ name }}" TOKEN="{{ token }}" send_file() { - cat "$file_name" | curl --progress-bar -F "file=@-;filename=${base_name}" "${ROOTURL}upload/${SHARE}/${TOKEN}" | cat - + cat "$file_name" | curl -F "file=@-;filename=${base_name}" "${ROOTURL}upload/${SHARE}/${TOKEN}" | cat - } send_folder() { - tar cz "$file_name" | curl --progress-bar -F "file=@-;filename=${base_name}.tgz" "${ROOTURL}upload/${SHARE}/${TOKEN}" | cat - + tar cz "$file_name" | curl -F "file=@-;filename=${base_name}.tgz" "${ROOTURL}upload/${SHARE}/${TOKEN}" | cat - } for file_name in "$@"; do