diff options
| author | Dirk Engling <erdgeist@erdgeist.org> | 2024-12-08 23:44:52 +0100 | 
|---|---|---|
| committer | Dirk Engling <erdgeist@erdgeist.org> | 2024-12-08 23:44:52 +0100 | 
| commit | 987a72b11d3b2ff23720908a0c75a3c70a86a772 (patch) | |
| tree | 9d58d5049e60dfe8ffca183f7d6c713f3c4410ba | |
| parent | b0d628146515dd7d4dbebdd2c5bae5dd09d33361 (diff) | |
Only set user and command if we're in the correct plugin section. Thanks to Tassilo Philipp
| -rwxr-xr-x | minimunin | 4 | 
1 files changed, 2 insertions, 2 deletions
| @@ -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 | 
