Skip to content

Commit

Permalink
fix warning in find_exceeding_backups
Browse files Browse the repository at this point in the history
  • Loading branch information
skillcoder committed May 8, 2024
1 parent 6349e1d commit 60e297d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backup/pvc/bin/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 60e297d

Please sign in to comment.