[fix] logrotate helpers: getopts miserably explodes if 'legacy_args' is inconsistent with 'args_array' ...

This commit is contained in:
Alexandre Aubin 2022-08-26 16:24:44 +02:00
parent ae92a0b8ea
commit 530bf04af5

View file

@ -35,7 +35,7 @@ ynh_use_logrotate() {
set -- "${all_args[@]}" set -- "${all_args[@]}"
# Declare an array to define the options of this helper. # 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 -A args_array=([l]=logfile= [n]=nonappend [u]=specific_user=)
local logfile local logfile
local nonappend local nonappend