From 60e297dafc77fb4a1e5cb74be1347fa78edafb5a Mon Sep 17 00:00:00 2001 From: skillcoder Date: Wed, 8 May 2024 16:36:17 +0100 Subject: [PATCH] fix warning in find_exceeding_backups --- backup/pvc/bin/run.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backup/pvc/bin/run.sh b/backup/pvc/bin/run.sh index 5fb371739..441902dd0 100644 --- a/backup/pvc/bin/run.sh +++ b/backup/pvc/bin/run.sh @@ -40,7 +40,7 @@ find_exceeding_backups() { local backup_count="$2" # Check if we have any backup if is_backup_not_exist "${backup_dir}"; then - echo "backups not found in ${backup_dir}" + echo "backups not found in ${backup_dir}" >&2 return fi find "${backup_dir}"/*.tar.zstd -maxdepth 0 -exec basename {} \; | sort -gr | tail -n +$((backup_count +1))