Skip to content

Commit

Permalink
Update rmlocal.script
Browse files Browse the repository at this point in the history
  • Loading branch information
madslundt authored Apr 16, 2018
1 parent 1c2ec35 commit 495873c
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions scripts/rmlocal.script
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,11 @@ rm_time () {
sleep 10
done

fileSize=$(du -sb "$n" | awk '{print $1}')

# Move file to remote destination[s], retaining path
rclone move $rclone_options "$@" "$n" "${rclone_cloud_endpoint}${destpath}" >/dev/null 2>&1

fileSize=$(du -sb "$n" | awk '{print $1}')
movedSize=$((movedSize + fileSize))

sizeInMb=$((movedSize / 1000 / 1000))
Expand Down Expand Up @@ -84,10 +85,11 @@ rm_instant () {
sleep 10
done

fileSize=$(du -sb "$n" | awk '{print $1}')

# Move file to remote destination[s], retaining path
rclone move $rclone_options "$@" "$n" "${rclone_cloud_endpoint}${destpath}" >/dev/null 2>&1

fileSize=$(du -sb "$n" | awk '{print $1}')
movedSize=$((movedSize + fileSize))

sizeInMb=$((movedSize / 1000 / 1000))
Expand Down Expand Up @@ -146,10 +148,11 @@ rm_space () {
sleep 10
done

fileSize=$(du -sb "$n" | awk '{print $1}')

# Move file to remote destination[s], retaining path
rclone move $rclone_options "$@" "$n" "${rclone_cloud_endpoint}${destpath}" >/dev/null 2>&1

fileSize=$(du -sb "$n" | awk '{print $1}')
movedSize=$((movedSize + fileSize))

sizeInMb=$((movedSize / 1000 / 1000))
Expand Down

0 comments on commit 495873c

Please sign in to comment.