This commit is contained in:
holzi1005 2025-01-07 17:06:59 +01:00
parent 5a7b11df4c
commit a7fc324201

View file

@ -17,7 +17,9 @@ inotifywait -m /out -e close_write |
i=0
while [ $i -lt $num_chunks ]; do
offset=$(( i * chunk_size ))
echo "${i}"
echo "${id}"
echo "${num_chunks}"
/bin/dd if="$file_path" bs=$chunk_size skip=$i count=1 2>/dev/null | \
/usr/bin/curl --location "$UPLOAD_URL" \
--header "Authorization: Bearer $AUTH_TOKEN" \