summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDirk Engling <erdgeist@erdgeist.org>2024-12-08 23:44:52 +0100
committerDirk Engling <erdgeist@erdgeist.org>2024-12-08 23:44:52 +0100
commit987a72b11d3b2ff23720908a0c75a3c70a86a772 (patch)
tree9d58d5049e60dfe8ffca183f7d6c713f3c4410ba
parentb0d628146515dd7d4dbebdd2c5bae5dd09d33361 (diff)
Only set user and command if we're in the correct plugin section. Thanks to Tassilo PhilippHEADmaster
-rwxr-xr-xminimunin4
1 files 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() {
371 _pref=${line#*env.} 371 _pref=${line#*env.}
372 _env="${_env} ${_pref%% *}='${_pref#* }'" 372 _env="${_env} ${_pref%% *}='${_pref#* }'"
373 ;; 373 ;;
374 user\ *) _user=${line#*user } 374 user\ *) [ "${in_sect}" ] && _user=${line#*user }
375 ;; 375 ;;
376 command\ *) _command=${line#*command } 376 command\ *) [ "${in_sect}" ] && _command=${line#*command }
377 ;; 377 ;;
378 esac 378 esac
379 done <<EOF 379 done <<EOF