From efa80304d265425c4013b645a51ce1cff9be1070 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Wed, 17 Aug 2022 19:18:49 +0200 Subject: [PATCH] =?UTF-8?q?Fix=20broken=20logrotate=20helper=20=C3=A9=5F?= =?UTF-8?q?=C3=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- helpers/logrotate | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helpers/logrotate b/helpers/logrotate index d7ad4571f..6696632d5 100644 --- a/helpers/logrotate +++ b/helpers/logrotate @@ -25,7 +25,7 @@ ynh_use_logrotate() { # So instead this loops over the positional args, and replace --non-append # with --nonappend so it's transperent for the rest of the function... local all_args=( ${@} ) - for I in $(seq 0 $#) + for I in $(seq 0 $(($# - 1))) do if [[ "${all_args[$I]}" == "--non-append" ]] then