summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimonHeimberg <simon.heimberg@heimberg-ea.ch>2017-05-04 14:55:32 +0200
committerGitHub <noreply@github.com>2017-05-04 14:55:32 +0200
commit6364fe1ca069b015a37aa8438b9a32670dd96b16 (patch)
treeb3d475477f7ebff67b4d8299651ce37f1de67df2
parent41f9bd1c8c80c773e094e5183983753181f7f8a5 (diff)
correct position for maxdept parameter
as suggested by the output of find
-rwxr-xr-xrsync_tmbackup.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/rsync_tmbackup.sh b/rsync_tmbackup.sh
index 2f03162..0e8b7fd 100755
--- a/rsync_tmbackup.sh
+++ b/rsync_tmbackup.sh
@@ -60,7 +60,7 @@ fn_parse_date() {
}
fn_find_backups() {
- fn_run_cmd "find "$DEST_FOLDER" -type d -maxdepth=1 -name "????-??-??-??????" -prune | sort -r"
+ fn_run_cmd "find "$DEST_FOLDER" -maxdepth=1 -type d -name "????-??-??-??????" -prune | sort -r"
}
fn_expire_backup() {