diff --git a/data/apps/helpers.d/utils b/data/apps/helpers.d/utils index 87cd47f6b..a6755e3c8 100644 --- a/data/apps/helpers.d/utils +++ b/data/apps/helpers.d/utils @@ -12,7 +12,7 @@ ynh_get_plain_key() { [[ "$line" =~ ^${prefix}[^#] ]] && return echo $line elif [[ "$line" =~ ^${prefix}${key}$ ]]; then - if [[ -n "$1" ]]; then + if [[ -n "${1:-}" ]]; then prefix+="#" key=$1 shift