upload
This commit is contained in:
parent
5a7b11df4c
commit
a7fc324201
1 changed files with 3 additions and 1 deletions
|
@ -17,7 +17,9 @@ inotifywait -m /out -e close_write |
|
||||||
|
|
||||||
i=0
|
i=0
|
||||||
while [ $i -lt $num_chunks ]; do
|
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 | \
|
/bin/dd if="$file_path" bs=$chunk_size skip=$i count=1 2>/dev/null | \
|
||||||
/usr/bin/curl --location "$UPLOAD_URL" \
|
/usr/bin/curl --location "$UPLOAD_URL" \
|
||||||
--header "Authorization: Bearer $AUTH_TOKEN" \
|
--header "Authorization: Bearer $AUTH_TOKEN" \
|
||||||
|
|
Loading…
Add table
Reference in a new issue