From 63219bc01d7b309bff796b9c775506ac272ff7fc Mon Sep 17 00:00:00 2001 From: holzi1005 Date: Tue, 7 Jan 2025 16:59:23 +0100 Subject: [PATCH] use path --- inotify.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/inotify.sh b/inotify.sh index 9aa0ef5..bca5916 100644 --- a/inotify.sh +++ b/inotify.sh @@ -12,14 +12,14 @@ inotifywait -m /out -e close_write | chunk_size="$CHUNK_SIZE" id="${FILE%.mp4}" - file_size=$(busybox stat -c%s "$file_path") + file_size=$(/bin/stat -c%s "$file_path") num_chunks=$(( (file_size + chunk_size - 1) / chunk_size )) i=0 while [ $i -lt $num_chunks ]; do offset=$(( i * chunk_size )) - dd if="$file_path" bs=$chunk_size skip=$i count=1 2>/dev/null | \ - curl --location "$UPLOAD_URL" \ + /bin/dd if="$file_path" bs=$chunk_size skip=$i count=1 2>/dev/null | \ + /urs/bin/curl --location "$UPLOAD_URL" \ --header "Authorization: Bearer $AUTH_TOKEN" \ --form "recording_id=${id}" \ --form "chunk_index=${i}" \