From 530bf04af5bead567e47df485ccf6d54da403f27 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Fri, 26 Aug 2022 16:24:44 +0200 Subject: [PATCH] [fix] logrotate helpers: getopts miserably explodes if 'legacy_args' is inconsistent with 'args_array' ... --- helpers/logrotate | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helpers/logrotate b/helpers/logrotate index 6696632d5..45f66d443 100644 --- a/helpers/logrotate +++ b/helpers/logrotate @@ -35,7 +35,7 @@ ynh_use_logrotate() { set -- "${all_args[@]}" # Declare an array to define the options of this helper. - local legacy_args=lnuya + local legacy_args=lnu local -A args_array=([l]=logfile= [n]=nonappend [u]=specific_user=) local logfile local nonappend