From 987a72b11d3b2ff23720908a0c75a3c70a86a772 Mon Sep 17 00:00:00 2001 From: Dirk Engling Date: Sun, 8 Dec 2024 23:44:52 +0100 Subject: Only set user and command if we're in the correct plugin section. Thanks to Tassilo Philipp --- minimunin | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/minimunin b/minimunin index 7f1c379..809cac1 100755 --- a/minimunin +++ b/minimunin @@ -371,9 +371,9 @@ call_plugin() { _pref=${line#*env.} _env="${_env} ${_pref%% *}='${_pref#* }'" ;; - user\ *) _user=${line#*user } + user\ *) [ "${in_sect}" ] && _user=${line#*user } ;; - command\ *) _command=${line#*command } + command\ *) [ "${in_sect}" ] && _command=${line#*command } ;; esac done <