mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
helpers2.1: fix ynh_config_add_logrotate when no arg is passed
This commit is contained in:
parent
a2ac77fa91
commit
3942ea12ae
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue