helpers2.1: fix ynh_config_add_logrotate when no arg is passed

This commit is contained in:
Alexandre Aubin 2024-06-23 14:08:05 +02:00
parent a2ac77fa91
commit 3942ea12ae

View file

@ -14,7 +14,7 @@ FIRST_CALL_TO_LOGROTATE="true"
# Requires YunoHost version 2.6.4 or higher.
ynh_config_add_logrotate() {
logfile="$1"
local logfile="${1:-}"
set -o noglob
if [[ -z "$logfile" ]]; then