From a7fc324201791bc6f9e87b26fb8ef3a2863256ad Mon Sep 17 00:00:00 2001 From: holzi1005 Date: Tue, 7 Jan 2025 17:06:59 +0100 Subject: [PATCH] upload --- inotify.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/inotify.sh b/inotify.sh index d4e3a75..c7dc6ae 100644 --- a/inotify.sh +++ b/inotify.sh @@ -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" \