Skip to content

Commit

Permalink
-mindepth 1 -type d -empty -delete
Browse files Browse the repository at this point in the history
  • Loading branch information
madslundt authored Sep 14, 2017
1 parent d060fc2 commit d5826b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/rmlocal.script
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ rm_time () {
rclone move $rclone_options "$@" "$n" "$(printenv RCLONE_CLOUD_ENDPOINT)${destpath}" >/dev/null 2>&1
done

find "${local_decrypt_dir}" -depth -type d -empty -delete
find "${local_decrypt_dir}" -mindepth 1 -type d -empty -delete
}

rm_space () {
Expand Down Expand Up @@ -92,7 +92,7 @@ rm_space () {
rclone move $rclone_options "$@" "$n" "$(printenv RCLONE_CLOUD_ENDPOINT)${destpath}" >/dev/null 2>&1
done

find "${local_decrypt_dir}" -depth -type d -empty -delete
find "${local_decrypt_dir}" -mindepth 1 -type d -empty -delete
}

# If script is already running; abort.
Expand Down

0 comments on commit d5826b5

Please sign in to comment.