From 125b5ce414c5aade17a445f00a52d715fe12321d Mon Sep 17 00:00:00 2001 From: Bastian Dehn Date: Thu, 6 Aug 2026 19:14:50 +0200 Subject: [PATCH] change less io for rsync log --- tests/backup_tests.bats | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/backup_tests.bats b/tests/backup_tests.bats index aad4125..abcc279 100755 --- a/tests/backup_tests.bats +++ b/tests/backup_tests.bats @@ -18,9 +18,8 @@ setup() { [ "$RSYNC_LOG_RUNS" -eq "0" ] || return 0 echo "${#@}" > "$RSYNC_LOG" - for i in $(seq 1 "${#@}"); do - echo "${@:i:1}" >> "$RSYNC_LOG" - done + local params=("$@") + printf "%s\n" "${params[@]}" >> "$RSYNC_LOG" } } -- 2.47.3